启动PowerShell进程并运行脚本

时间:2015-01-14 01:10:09

标签: powershell

如何将标志传递给start-process powershell?

我想运行powershell -file,但它被作为start-process的参数。

1 个答案:

答案 0 :(得分:1)

只需输入Invoke-Item ("FilePath")即可。有关详细信息,请参阅MSDN

相关问题