main send a command