modified the cli to lookup up our command attach the hooks command next and then execute the chain of commands