How can I check my PowerShell version?

How did I install PowerShell 7 to Windows 10?