[tools 1/2] testbot/TestAgent: Simplify running and waiting for a remote command.