This article explains how you can run a Grapher script from the command line.
You can run a script via the command line with this syntax:
"<Scripter path>" -x "filename.bas"
The –x means execute, and quotes are necessary around the file path to the Scripter.exe file and the BAS file.
“C:\Program Files\Golden Software\Grapher 12\Scripter\Scripter.exe" -x "C:\Temp\ClassPlot.bas"
Updated December 21, 2017