If you are like me and get annoyed with the big PowerShell upgrade ’nag’ ‘reminder’ (see screenshot below); instead of trying to figure out what to download and install the update, there is a simpler way to get the latest update and address the nag. :)

You can just run the code below in an elevated prompt to get the latest release of PowerShell - it is easy-peasy. :)

iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI"