Remote Execution is the execution of a program on a remote host.
The original remote execution schemes were telnet and rsh, but there is no reason at all for using either of those if you can possibly use ssh instead.
One common approach is to drive ssh as a subprocess, often with the help of Expect.