How can I check my PowerShell version?

$PSVersionTable.PSVersion

2023-04-28--23-15-14

How did I install PowerShell 7 to Windows 10?