Discovering the PowerShell version you’re using can be an interesting task.
The automatic variable $PSVersionTable was introduced in PowerShell v2. On my Windows 10 version 1803 machine for Windows PowerShell I get
PS> $PSVersionTable
Name Value… Read the full text.