<t>Use $PSVersionTable.PSVersion to determine the engine version. If the variable does not exist, it is safe to assume the engine is version 1.0.<br/>
<br/>
Note that $Host.Version and (Get-Host).Version are not reliable - they reflect<br/>
the version of the host only, not the engine. PowerGUI,<br/>
PowerShellPLUS, etc. are all hosting applications, and<br/>
they will set the host's version to reflect their product<br/>
version — which is entirely correct, but not what you're looking for.<br/>
<br/>
PS C:\> $PSVersionTable.PSVersion<br/>
<br/>
Major Minor Build Revision<br/>
----- ----- ----- --------<br/>
4 0 -1 -1<br/>
<br/>
```</t>