DOpus env vars in batch files

Are there maybe some local Directory Opus-generated environment variables that are available for use in custom commands and MS-DOS batch files, such as number of files selected when command was launched, etc.? I was hoping to use information like that to set up simple output window progress indicators for batch file functions (using ECHO command to display “Processing file #/##…” or something similar), but I’m not finding references to any such things, though maybe I haven’t happened across the right wording.

Not for batch files, but that information is available in scripts, which also have the option of displaying a proper progress dialog.