pass command name automatically if required by the application
[Console] added some tests for previous merge (refs #8626)