So looking at that, how would AI be configured to run? Whether it ends up being an executable or a file, compatibility would still be an issue. If it runs on its own, then the problem you face would be operating system (and possibly file system) support, and if it runs through an intermediary program, then system compatibility might not be so much of a problem, but the program will have to be upgraded and file compatibility is not always guaranteed.
My anticipation is that a lot of the early ones are going to get the ability to interact with unix command-line shells. It's easy to interface, it's powerful, and its idioms are discoverable.
Controlling machines in real time though would be either through some different virtualized interface, or by direct use of the runtime environment like any other program (Or possibly more like an operating system than a program).
With the ability to rapidly adapt to very different hardware (bank server to human-form robot to submarine to jet fighter) and benefit from CPU and other hardware upgrades? I'd be betting on a virtualized interface of some kind. The Bash shell, for example, runs on ALL kinds of hardware and knowing how to handle it remains useful in spite of different hardware choices, kernel upgrades, runtime library mods, and OS changes. Some kind of crazy-advanced analogue of that would be a standard way for AIs to interface with all kinds of hardware. It would be like you know how to drive a car and when you sit down in a truck or a farm tractor or a cotton picking machine. It's different and it handles differently and there are some levers over there that do things the car couldn't do, and some things the car could do that this machine can't, and maybe you have to handle gear shifting differently ... but the steering wheel is still a steering wheel, the gas pedal still accelerates, the brake pedal still slows down, the gauges on the panel that show things like speed and RPM or whatever still mean the same thing, and within a few hours of taking things slow and careful, you get used to it.