add shorthand executeCommand() to shell to build and execute a command.