I think the way to do this is to set a unique environment var on all your Terminal Servers and then act on it in your batch file. That is the methodology we use.
code:
REM ****** START CITRIX GENERAL SCRIPT ********
IF DEFINED CitrixSvrDomain GOTO CITRIX
GOTO CITRIXEND
:CITRIX
bla bla bla

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.