PSVersionTable.PSVersionIf PSVersion variable does not exists them it is Version 1.0, as it was not available at that time. Do not use $Host.Version or (Get-Host).Version as they indicate the version of the host and not the PowerShell's engine version number.