I added a script in the "Post-Sync Hub actions" section of the mirrorsync customization script and tried to pass the $$MIRRORSYNC_USERTOKEN variable as the parameter.
The script does get executed but with a blank parameter.
P.S.
I only modified the script on the server and not on the device if that makes a difference...