Exporting multiple entities at once without confirming file names

I would like to accomplish the following in Shaper or Geom modules.

Every time an object (e.g. shell, face, solid, etc.) is to be exported, a dialog box pops up and asks for path and file name. This is not an efficient way of exporting hundreds of entities at once. Is there any way to set the saving path once for a selection of objects and let the export use the object names assigned by Salome, e.g. Solid_11, Solid_12, etc.?

hello,
this should do the work (in geometry module).

#!/usr/bin/env python
exportPath="C:/Users/user/Downloads/"

import sys
import salome

salome.salome_init()
import salome_notebook
notebook = salome_notebook.NoteBook()
sys.path.insert(0, r'C:/Users/user/Desktop')


import GEOM
from salome.geom import geomBuilder
import math
import SALOMEDS


geompy = geomBuilder.New()

n_Selected=salome.sg.SelectedCount()
for i in range(n_Selected):
    selected=salome.sg.getSelected(i)
    selected_object=salome.IDToObject(selected)
    geompy.ExportSTEP(selected_object, exportPath+selected_object.GetName()+".step", GEOM.LU_METER )```
regards, 
F.

Thanks a lot. Works like a charm.