要运行的脚本如下。
string script = "powershell -executionpolicy unrestricted C:\Program Files (x86)\TEST\test.ps1"
但错误显示(x86)不是~
我该如何解决这个问题?
发布于 2020-04-15 16:33:38
解决方案是:
string script = "powershell -executionpolicy unrestricted -file 'C:\Program Files (x86)\TEST\test.ps1'"
https://stackoverflow.com/questions/61224234
复制相似问题