use -S on the scp command
e.g. http://superuser.com/questions/87597/how-to-perform-scp-as-a-sudo-userhttps://superuser.com/questions/87597/how-to-perform-scp-as-a-sudo-user
it will allow you to execute a script, on much like i believe you were doing with the winscp use case.