Code:
  $DOMAIN = "TPE"


IF EXIST ("C:\Program Files\The Produce Exchange\TPEAllocator\buffers")
SHELL '%comspec% /c XCACLS "C:\Program Files\The Produce Exchange\TPEAllocator\buffers" /C /T /G '+$DOMAIN+'\Everyone:F'
ENDIF
IF EXIST ("C:\Program Files\The Produce Exchange\TPEAllocator\XML")
SHELL '%comspec% /c XCACLS "C:\Program Files\The Produce Exchange\TPEAllocator\XML" /C /T /G '+$DOMAIN+'\Everyone:F'
ENDIF
IF EXIST ("C:\Program Files\The Produce Exchange\TPEAllocator\XML\Saved")
SHELL '%comspec% /c XCACLS "C:\Program Files\The Produce Exchange\TPEAllocator\XML\Saved" /C /T /G '+$DOMAIN+'\Everyone:F'
ENDIF



If i remove the '+$DOMAIN+ I get unknown command error