Saving parasolid in gh when executing remotly

I open and run a grasshopper in the shell in an optimization loop managed by ModeFrontier, and it supposed to save the geometry as a parasolid. However the saving ask the type of parasolid to use (SolidWorks, Default…) and as it is in an automatical loop we can’t choose and press enter. Do you have any idea to make it automatic?

Thx, Amaury