[environment]::setEnvironmentVariable('SCOOP','D:\Applications\Scoop','User') //第二个参数是自定义目录
$env:SCOOP='D:\Applications\Scoop' //和上一条命令的自定义目录相同
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')//如果执行scoop命令报错-->set-executionpolicy remotesigned -scope currentuser