Set-ADUser -Identity <name> -PasswordNeverExpires $true
Set-ADUser : The term 'Set-ADUser' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:2 char:1 + Set-ADUser -Identity $Name -PasswordNeverExpires $true + ~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Set-ADUser:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException