which version of powershell do i have code example Example: check powershell version PS C:\> $PSVersionTable.PSVersion