Added helper for testing CLI commands

Fixed support for multi-word parameters.