Included with the Development Tools edition of ESL is a sample application that demonstration the techniques used with DOS Shell Library functions. The sample provide a simple command window, where you can type in the DOS commands, then observe the response provided by the Command Line Interpreter. The sample has the facility to restart the interface, should the command cause a crash or termination. We would recommend you use this sample to confirm that all the commands created by the production ESL application, are acceptable, and use the observed output to determine the processing needed to parse the response from each command.
Together with the sample application, the source code for the DOS Shell Library is supplied, as an example of a stimulus library. If you build this code into a Dynamic Link Library, you will need to include a module definition file, as all the functions must be exposed in the undecorated form, plus the ordinals of; InitializeStimulus, TerminateStimulus and StimFunc must be set to 1, 2 and 3 respectively, as required by a stimulus library.
As the Command Line Interpreter is effectively a simple console application, the source code could be used as a template to develop an interface to any well behaved console application.