How to automate the export of datasmith in Revit?

I’m trying to automate the datastmith export but once it’s run I can’t access the path and filename.

Is there any possibility to use the export command without the save as dialog popping up and passing the path to it?