You have spaces in some of the code.
ThisService_Cu stomPort4%
ThisService_RCo nPort%
ThisService_Cust omPort2%
might be more i just spotted those with a glance.
That script wont work if you are running it under it's own user as you need to set compatability for all users.
Setting it under the gameinstalls works best as stated because it then copies and carries that to all the installs.
Also note interactive services is disabled by default in the registry on 2012
HKLM\SYSTEM\CurrentControlSet\Control\Windows NoInteractiveServices
Change 1 to 0 and reboot to enable it. Then enable in services .