how to check which version powershell code example Example: check powershell version PS C:\> $PSVersionTable.PSVersion