输入path,检查一下Powershell在不在环境变量的路径中,Powershell的执行文件在以下路径:C:\Windows\System32\WindowsPowerShell\v1.0\如果路径中没有,请通过以下命令添加:1 SETX PATH=%path%;"C:\Windows\System32\WindowsPowerShell\v1.0\" /M添加后重启计算机生效。