Quick and dirty, how to change the windows password from the command line in an insecure fashion (exposes password on the command-line).

For a local user:

net user USERNAME NEWPASS

For a domain user:

net user /domain USERNAME NEWPASS

or (powershell)

Set-ADAccountPassword -Identity $user -Reset -NewPassword (ConvertTo-SecureString -AsPlainText "$newPass" -Force)