Don't authenticate your PowerShell session using the admin user if you're changing the admin password...it will cause some errors after the command is executed.
Andrew
If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.
This command seems to work, but because there are 5 different applications (http,ssh,ontapi,sp,console), it tries to change the pw 5 times, instead of just once. The command will runm, then error out 4 subsequent times.