That’s kind of the whole point This is already available via the script compiler that ships with Rhino 7.
@kleerkoat this video is newer and shorter than the original video in this thread. Maybe you can watch this to get an idea of how the system works.