how to check windows powershell version

C++
PS C:\> $PSVersionTable.PSVersion
Source

Also in C++: