Upgrade-script for Windows from OH2.5 to OH3.2 fails

Maybe this helps?

And to confirm you are running script in a power shell administrator window?