Get PowerShell Version
$PSVersionTable.PSVersion
Details
Returns the current version of PowerShell running.

Example
PS C:\> $PSVersionTable.PSVersion


Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      14393  0