Earlier quoted context omitted.
AFAIK, macOS is the only OS to come with this sort of things out of the box (and that is supposed to work consistently across all applications; good luck with that on Linux). https://en.m.wikipedia.org/wiki/Automator_(macOS) https://en.m.wikipedia.org/wiki/AppleScript
That is what I had in mind as I wrote it. Sad that many macOS apps now are built with Electron, or we simply use web browsers to access public or internal apps.
In contrast Automator/AppleScript only works on macOS afaict.