I am in no way suggesting there is anything wrong with the installer script included with the patch files. It certainly works.
I wanted it to work in new PowerShell and I wanted uninstall entries.
I'm not a person who comes to a forum to complain about anyone's hard effort freely given, SO, attached is an updated script that does both.
I also cleaned it up a bit, added parameters, swapped out some aliases for cmdlet names, fixed some casing, and function-afied it, so it a bit easier for the next person to tinker on.
It takes 2 parameters:
InstallPath: where to install the game, it will prompt for it if omitted.
And a switch NoConfirm: removes any and all confirmation prompts.
It will also add 2 scripts to the install folder, 1 to launch it the same way as the shortcut and one that removes all the files and the shortcut that will get launched from Settings.
The launch script is for any launcher apps (ESDE, LaunchBox, etc) so I don't have to go get the args from the shortcut myself, because I'm lazy. 🤣
And because it adds the uninstall entries in the registry you will need to run it as an administrator.
It has a #requires -RunAsAdmin on it, so it should just fail if you have not elevated.