If you want to check which PowerShell version are you using, execute either get-host or echo $PSVersionTable on PowerShell with elevated privileges.
The latest version is 5.1 and it is available in the newer generation of Windows Server 2016.
PowerShell Versions on Windows
Following are some previous PowerShell versions:
- Version 1.0 (Available in Windows Server 2008)
- Version 2.0 (Available in Windows 7 and Windows Server 2008)
- Version 3.0 (Available in Windows 8 and Server 2012)
- Version 4.0 (Available in Windows 8.1 and Server 2012 R2)
nice article,
if you want to query on remote machine here is the script
Invoke-Command -ComputerName DESKTOP-MYVDI10 -ScriptBlock {$PSVersionTable.PSVersion}
https://www.faqforge.com/windows/check-powershell-version/