Add api function to execute a command.