REM MYVAR.BAT SET MYVAR=perl -we "print 'foobar'" CALL %MYVAR% PAUSE