PowerShell:スクリプトをダウンロードして実行
セキュリティ問題があることに注意
$ irm <URL> | iex
多分一番簡単。URLの先に何か危険なことが書かれていたらおしまい。
以下は "Hello, world!" を表示するだけのスクリプト。
https://raw.githubusercontent.com/BugbearR/powershell-playground/refs/heads/main/hello/hello.ps1
$ irm https://raw.githubusercontent.com/BugbearR/powershell-playground/refs/heads/main/hello/hello.ps1 | iex
$ iex ((New-Object Net.WebClient).DownloadString('URLを書く'))