A PowerShell Module to upgrade from one version of PowerShell to another or upgrade from 2 to 5.
Run the following after putting the UpgradePowerShell root folder in C:\users\user\Documents\WindowsPowerShell\Modules folder (you may have to create the folders in this path):
For example, the path to the downloaded repository should be:
C:\users\SomeUser\Documents\WindowsPowerShell\Modules\UpgradePowerShell\UpgradePowerShell.psm1
But keep the same structure as the repository
Then open a admin PowerShell prompt and run:
Import-Module UpgradePowerShell
To upgrade from Version 2 to 3, run the following in the same command prompt:
Upgrade-PowerShell -Version 3
To upgrade from Version 2 to 5, then do the following (this will reboot your machine several times):
Upgrade-PowerShell -Version 5
``