How Magento 2 CLI Command runner works?

How Magento 2 CLI Command runner works?