Re: PutFiles() access is denied in powershell but batch and gui works (solution)
As documented:
https://winscp.net/eng/docs/library_session_putfiles
Full path to upload the file to. When uploading multiple files, the filename in the path should be replaced with operation mask or omitted (path ends with slash).
https://winscp.net/eng/docs/library_session_putfiles