There are a few lines in your script as well that don't sit right.

What are the two lines?
Option [1]
Option [2]
There are no such commands in KiX.

Also there is no such macro as @USERUID.
SHELL "SET USERNAME=@USERUID"
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.