1、在原始的PowerShell命令行及各种自定义调用命令行中输入以下命令:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
在接下来的提示中输入Y,回车,然后重启电脑,问题解决。