update powershell from powershell code example Example: powershell upgrade Click to copyiex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI"