ProcessStartInfo and Process in PowerShell - Authentication Error
问题 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 how to troubleshoot them. #script1.ps1 $abc = $args $startInfo = $NULL $process = $NULL $standardOut = $NULL <#Previously created password file in C:\Script\cred.txt, read-host -assecurestring | convertfrom-securestring | out-file C:\Script\cred.txt#> $password = get-content C:\Script\cred.txt | convertto-securestring