fixes powershell upgrade script to work on different System architectures.

On x86 systems doesn't work so, starting by the line 63 we check if the architecture is x86 or x64.