Open Microsoft Store
Search for PowerShell
Install or update PowerShell 7.x
Open PowerShell
Run `winget upgrade Microsoft.PowerShell`
Run `winget install Microsoft.PowerShell` if PowerShell is not installed
Download the latest PowerShell release from the official GitHub releases page
Run the installer and follow the prompts
Restart PowerShell after installation
Verify the version with `$PSVersionTable.PSVersion`
