The arguments from the command window can be sent to a textfile using > PRE_test.txt as in the example below.
set ARG=%1
set SERIESNAME=%2
goto %ARG%
:"PRE"
echo %1 %2 %3 %4 %5 %6 %7 %8 %9> PRE_test.txt
goto End
:"POST"
echo %1 %2 %3 %4 %5 %6 %7 %8 %9> POST_test.txt
goto End
:"PREDEF"
echo %1 %2 %3 %4 %5 %6 %7 %8 %9> PREDEF_test.txt
goto End
:"POSTDEF"
echo %1 %2 %3 %4 %5 %6 %7 %8 %9> POSTDEF_test.txt
goto End
:"#NONE#"
echo %1 %2 %3 %4 %5 %6 %7 %8 %9> NONE_test.txt
: End