Work on the remote command execution logic and improving the output of
the generated script.