Here you can find an PowerShell Script that automatically uploads files to a SFTP server
It uses the psftp.exe file from putty (Link valid 10/2024) and does the following steps:
- create a ftp steer file with all neccessary commands
- execute command file with psftp.exe

Details for user, password and host have to adjusted.
Also details for the activities, in my ecample I change the remote directory to /httpdocs/akku/
and upload two files from c:\powershell to the remote directory

PowerShell code as text file