需要先设置Windows的脚本执行策略
https://docs.microsoft.com/zh-cn/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.2Set-ExecutionPolicy -ExecutionPolicy Unrestricted
github文档:https://github.com/ScoopInstaller/Install#for-adminirm get.scoop.sh -outfile 'install.ps1'
.\install.ps1 -RunAsAdmin