In Grasshopper in Rhino 7, you can insert parameters that make it possible to run a Grasshopper definition from the Rhino command line. In addition to that, the Rhino 7 Script Compiler can then be used to turn that definition into a Rhino plug-in so that you always have your custom command right in Rhino.