I simply use 7-zip for that:
Configure Execute Process Task with settings
Executable: C:\Program Files\7-Zip\7zG.exe
Arguments: -wc:\TEMP e \\SERVER\share\myfile.tgz
Ofc you need to run package on user account with proper permissions to shared folder.
Sorry, but your next problem is not too clear for me to make a good suggestion.