如题,在ps1脚本执行时,脚本参数添加-NoExit不起作用。
自己手动运行powershell.exe -NoExit -NoProfile -ExecutionPolicy Unrestricted -File "C:\Users\test\Desktop\新建 文本文档.ps1"时-NoExit是起作用的