Function for parsing a command file, which can send files and execute commands on a given remote host