Windows PowerShell ファイルの使用
Windows PowerShell ファイルを使用するには、filename パラメータに PowerShell ファイルへの絶対パスを指定します。
"filename": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
次に、arguments パラメータにセッションスクリプトを指定します。
"arguments": "-File \"C:\\path\\to\\session\\script.ps1\"",
最後に、PowerShell 実行ポリシーで PowerShell ファイルの実行が許可されていることを確認します。