解决办法:
用管理员权限打开VScode,然后运行命令Set-ExecutionPolicy -Scope CurrentUser
Set-ExecutionPolicy -Scope CurrentUser
然后提供一个值:RemoteSigned 就可以了
RemoteSigned