Get Powershell Version
1PS /Users/example> $PSVersionTable
2
3Name Value
4---- -----
5PSVersion 7.0.2
6PSEdition Core
7GitCommitId 7.0.2
8OS Darwin 19.5.0 Darwin Kernel Version 19.5.0: Tue May 26 20:41:44 PDT 2020; root:xnu-6153.121.2~2/RELEASE_X86_64
9Platform Unix
10PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
11PSRemotingProtocolVersion 2.3
12SerializationVersion 1.1.0.1
13WSManStackVersion 3.0