copyFile function

Copy a file using robocopy on Windows and rsync on Linux/macOS