windows server 2008 powershell upgrade code example Example: powershell upgrade iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI"