update powershell to latest version windows 10 code example Example: How to get the latest powershell update Install-Module -Name PowerShellGet -Force Exit