Enabling the override of the Command::run() method

Adding new getters and use them in Command::run() method.