Powershell upgrade script