Open PowerShell
Run `winget upgrade Microsoft.PowerShell`
If prompted, confirm the installation
Restart PowerShell after the update completes
If `winget` is unavailable, download the latest PowerShell installer from the official GitHub releases page
Run the downloaded installer
Follow the installation prompts
Restart PowerShell after installation
Verify the update with `pwsh –version`
