Create custom toolbar button to run a RhinoPython script?

Is this what you are looking for? https://developer.rhino3d.com/guides/rhinopython/python-running-scripts/

Or maybe this thread which gives some more information on the method: Running Python scripts from aliases or toolbar buttons