connect to remote mq server and send cmd