我的计算机上同时安装了 PowerShell 5.1 和 PowerShell 7.0。如何为给定脚本(在本例中为 PowerShell 7.0)强制执行 PowerShell 的强制版本(特定版本,而不是最低或最高版本)?
shell powershell powershell-core
powershell ×1
powershell-core ×1
shell ×1