How else would anyone do something like issue a refund if not through a programmatic interface?
At some level everything an agent does is through a "programmatic interface" (tool calls).
Some people might use skill-based scripts, MCPs, or some kind of raw access to a database. My point is that well designed CLIs are the optimal programmatic interface, for many reasons.
Direct access to the database, and create the "refund program" on the fly. Yes, stuff of nightmares.