I have code that uses ProcessStartInfo and Process to invoke another script, and to return the output of that script.
Unfortunately, I am getting errors, and I am unsure
It's pretty much spelled out to you, isn't it?:
"Logon failure: unknown user name or bad password"
(first error line).
Note that DOMAIN should be provided in separate property:
$startInfo.Username = "Username" $startInfo.Domain = "DOMAIN"