The easiest way to determine current PowerShell version is to execute the following script: $Host.Version