Cheetah runs Grasshopper components, and runs Grasshopper from the command line. Output from Python components in Grasshopper can be sent to the command line. Cheetah can stop Grasshopper from a Python component, and return any exit code.
The CLI Rhino runner requires Python 3.