1 個回答
- 最新
- 最多得票
- 最多評論
1
Unfortunately, it is not possible to specify the PowerShell version while running a AWS-RunPowerShellScript
run command. However, you can work around it by calling PowerShell 7 and pass a command/script. The following invokes a PowerShell 7 command of Get-Host.
& "C:\Program Files\PowerShell 7\pwsh.exe" -Command "Get-Host"
已回答 2 年前
相關內容
- 已提問 6 個月前
- AWS 官方已更新 1 年前