SyntaxFix
Write A Post
Hire A Developer
Questions
The below cmdlet will return the PowerShell version.
$PSVersionTable.PSVersion.Major