Start python script on load

Hey all,

I Made a grashopper system with a python script included. The goal is to have the script prompt the user for XYZ inputs (for a rectangle) and then make that rectangle (with grid) and bake the result.

How do i make sure the script runs when the user clicks the grasshopper button?

Thanks in advance!
Floor grid.gh (9.5 KB)