Hello,
I don't see why that would not work, take a look at the KUKA|prc settings that splits a large job into several files.
All it does is generate multiple programs that are then run for a primary file.
But yes, if you want branching decision trees Grasshopper is not the best tool, we did some very successful experiments with Unity Visual Scripting, though, for real-time applications.
Best,
Johannes