how to update and upgrade powershell on windows 10 to the latest version 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