str1der,
Where are you coming from and where are you going?

You say "from the batch file we use to launch a citrix session"

If this batch file is at the client and the script is running on the server, never the two shall meet.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.