$s added command processing callback to be able to check for prompts required by the command