Subscribe to a message queue and run commands on messages