Custom netlist export not working from GUI

I have created a Wolfram Language script that exports a netlist in a form that is convenient for symbolic analysis in Mathematica. I have added an exporter with the netlist command:

/usr/local/bin/KiMathExporter.wls “%I” “%O.wl”

When I export using this command, it silently fails (partially). It creates the XML representation as expected, but not the .wl file. I can then issue a command like

/usr/local/bin/KiMathExporter.wls BesselShaper3.xml BesselShaper3.wl

from a terminal, and the script does its job just fine. But why doesn’t it work from the GUI?

MacOS Sonoma 14.7.3