启动 powershell 进程和 运行 脚本

Start powershell process and run a script

如何将标志传递到启动进程 powershell 中?

我想要 运行 powershell -file,但是它被用作启动进程的参数。

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