Executing a shell script on Quick Export?

Hi, all, I’m trying to build a shell script that will allow me, with a single keystroke, to export a Ulysses sheet as a Markdown file to an external directory. The problem I’m encountering is that Keyboard Maestro, my engine of choice, can’t find the “Save to…” button up at the top right of the first window. Would anyone have a workaround? Many thanks!