Question: how to copy files from linux to windows share?
Answer: Mount the Windows share somewhere (using the kernel CIFS filesystem). ... 
use the smbclient command-line program, which is a similar idea to sftp (or ftp ).