Whats best way to run a GH definition from an external python script

Hello all,

I’m trying to figure out if it is even possible to create an external python script to run a GH definition, headless would be best, but is not required.

what are the best modulos to do this?
Rhino3dm
rhinoinside
rhino remote
rhino compute

my objective is to create a python file that I can change a couple of inputs inside the GH defition and run this defition several times for a list of inputs.

so far I havent had any luck in finding anything online.
can someone point me in the right direction please

Hi! I am also looking into this- so far I found some resources for running GH via rhinosyntax that someone else pointed at in a related post: