Just type $PSVersionTable.PSVersion
Most scripts should run on version 3.x, 4.x and 5.x in some cases scripts require the old version 2.0 which can be installed alongside a newer version in which case you can run a script with the old version with powershell.exe -Version 2.0 -file C:\path\to\script.ps1