Executes a command.
The command. If there is no command in it (it is empty or only whitespaces), this method is a no op