Transparent use of `child_process.exec` and `ssh2.prototype.exec`