How can I tell which version of powershell I have?

$PSVersionTable.PSVersion

(Compared to this DOS classic: ver)

So I've added this to my profile:

function ver() {
     $PSVersionTable.PSVersion
}

But you might also need to consider where the currently running shell is 64 or 32 bit, and is powershell running as admin?.

Or if you want to know the windows version, I've covered that too.

Source