I would indeed not use Program Files; I used in my lab C:\Onguard\ as location; but ProgramData sounds like a good candidate as well.
It has been a while that I worked with these custom scripts; and if there is no further response (and just trying another location does not have result); it may be advisable to open a TAC case.
------------------------------
Herman Robers
------------------------
If you have urgent issues, always contact your HPE Aruba Networking partner, distributor, or Aruba TAC Support. Check
https://www.arubanetworks.com/support-services/contact-support/ for how to contact HPE Aruba Networking TAC. Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or HPE Aruba Networking.
In case your problem is solved, please invest the time to post a follow-up with the information on how you solved it. Others can benefit from that.
------------------------------