Check PowerShell version

PowerShell version:

$PSVersionTable.PSVersion

PowerShell edition (Core or Desktop):

$PSVersionTable.PSEdition

Comments