Found issue on different System architecture.

On x86 systems doesn't work so, starting by the line 63 we check if the architecture is x86 or x64.
Merge pull request #9481 from cipress/patch-1

fixes powershell upgrade script to work on different System architectures.