I had an almost identical thought for something I am working on. The following text from the development guide hints that something of this nature might be possible, but no example is given.
The FMP7Script protocol in FileMaker Go extends the FMP7 protocol. Use FMP7Script to open and run a specified script in remote FileMaker Pro files, hibernated files, local database files on a device, or to communicate with other apps.
It would be great if some of the local gurus could show the way forward...