Implementing automatic command execution