Or, if I assume correctly and these are user variables (would even bet the house that they are!), you can Issue a second script that is started by 'HKLM\Software\Microsoft\Windows\CurrentVersion\RUN' and set the variables there ...

This is a quite safe way to make changes in HKCU

hth
_________________________