This script runs only on publishing time if the package is deployed globally.
You say you want to run it before the app starts? Use a startVE script.
Also, if you still want to run it on publishing time, and you publish to users, you need to modify the userconfig instead. One last thing, you cant call gpupdate.exe directly, no need for a batchfile. Also the workingdir for scripts is the scriptfolder,
no need to put in the path "[{AppVPackageRoot}]\..\Scripts"
Roy Essers