Wraps local and remote command line calls.