Which version of PowerShell am I running?
To find out which version of PowerShell you're running, use:
$PSVersionTable.PSVersion
If the variable doesn't exist, you can assume it's version 1.0.
(From https://stackoverflow.com/questions/1825585/determine-installed-powershell-version).
Finding the installed version of a module
Use Get-Module
to report installed modules and versions:
Get-Module -ListAvailable
(Without -ListAvailable
, Get-Module
lists only modules that have been imported into the current session).