Automation sequence from a file

Hello Node-Red community, I'm looking for some advice. I've created something similar to a 3D printer with 4 steppers, 4 end stops 16 fluid valves and a few i2c devices. I want anyone who uses this device to generate their own sequence code, like g-code, I'm calling my version flow-code. Any idea how to approach this problem in Node-Red? What I'm envisioning is the dashboard can accept the flow-code in CSV format, then load it into a table, then node-red executes each line, waits for a finish command then continues to the next line.

And ideas are welcome