Trust thy neighbour: the windows equivalent of curl | sudo bash
iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex
I find this in the Vagrant file to bring up some Windows docker. Chocolatey? Its a package manager for Windows.
PS C:\Users\vagrant> Get-ExecutionPolicy RemoteSigned
Reading a bit more, it seems maybe:
Set-ExecutionPolicy RemoteSigned $env:chocolateyVersion = '0.10.11' iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
is the ‘safe’ way? This means that we trust the signer (their process, their code, their control of the signing keys).