起因起初只想在 win7上实现 pause 效果而已cmd /c pause | out-null 结果只能看到红字一闪而过打开 PowerShell ISE 进行调试这次清楚的看到红字提示"cannot be loaded because running scripts is disabled on this system"解决方法管理员权限运行PowerShellSet-ExecutionPolicy RemoteSigned