Since 2016, the IRS has allowed Form 1040NR to be e-filed, but doesn't allow 1040NR-EZ to be e-filed.
TaxAct supports e-filing for Form 1040-NR. For more information please see IRS Instructions for Form 1040-NR or IRS instructions for Form 1040-NR-EZ.