Implement a mechanism that executes a command action in the waiting queue.