What is the command to check the version of powershell?
There are a few different ways. You can use the Get-Host cmdlet like below:
PS C:\> Get-Host
PS C:\> $(get-host).version
Or the variable
PS C:\> $PSVersiontable
Use $PSVersionTable.PSVersion
PS C:\Users\nec> $PSVersionTable.PSVersion
Major Minor Build Revision
----- ----- ----- --------
5 1 14393 693