powershell install windows update code example
Example 1: powershell upgrade
iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI"
Example 2: How to get the latest powershell update
Install-Module -Name PowerShellGet -Force
Exit
iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI"
Install-Module -Name PowerShellGet -Force
Exit