更新时间:2023-02-03 20:44:50
试试这个:
powershell "C:\Dummy Directory 1\Foo.ps1 'C:\Dummy Directory 2\File.txt'"
如何从命令行运行 Powershell 脚本并将目录作为参数传递