$PSVersionTable.PSVersion Method A: Using winget (Recommended) Windows 11 includes winget (App Installer). This is the simplest method.
Search for available PowerShell versions:
pwsh -c "$PSVersionTable.PSVersion" If you want to install a preview version: