We were asked to set up an automated upload from one of our servers to an SFTP site. There will be a file that is exported from a database to a filer every Monday morning an
Using PuTTY's pscp.exe (which I have in an $env:path directory):
$env:path
pscp -sftp -pw passwd c:\filedump\* user@host:/Outbox/ mv c:\filedump\* c:\backup\*