Add do_command endpoint