A batch script is interpreted by:
To get the interpreter location, use the variable ComSpec:
>echo %ComSpec%
C:\Windows\system32\cmd.exe
or the dynamic variable %CMDCMDLINE%
echo %CMDCMDLINE%
"C:\Windows\system32\cmd.exe"