windows-terminal/tools/WindowsCheckPSVersion.ps1

3 lines
181 B
PowerShell

if(-not (Get-Command "pwsh.exe" -ErrorAction SilentlyContinue)){
Write-Error "Incorrect version of PowerShell installed.`nMake sure you have at least PowerShell Core 7.0.0."
}