How to process a command