Inmem returns true if the TSR you are looking for is loaded. This allow
you to do conditionals based on the presence or absence of a TSR. It
will also check for the names of pending batch files.
Example:
if not InMem('BTRIEVE')
Bat 'BTRIEVE.EXE'
endif