extern "C" CMDAPIIMPORT int CMDProcessSingleCommand ( void * Interpreter, const char * line ) ;
This function executes a single command using the given instance of the interpreter. The function returns when the command has completed execution (or if the exit flag was set during execution) including any command scripts that it may have called.
The interpreter executes the command exactly as it stands. Any handle redirection or environment variable expansion required should have been performed beforehand. The command is executed as a single simple command. Conjunctions will not be treated specially.
This function is used by commands such as FOR and CALL that execute their command tails as commands, since environment variable expansion and redirection will have already been performed on their command tails before they receive them.