The easiest and quickest way to update PowerShell is by running the update command inside of PowerShell. Follow this process to update your version of PowerShell:
- Right click PowerShell and run as Administrator
- To see the latest available PowerShell version, run this command: winget search Microsoft.PowerShell
- You may be prompted to enter Y to agree

- To update PowerShell, run this command: winget install –id Microsoft.Powershell –source winget
And that’s all there is to it.