https://www.itmedia.co.jp/news/articles/2405/28/news172.html

こういうのがあるからPowerShellはスクリプト実行禁止がデフォルトになっている