Re: "cannot find the path specified" - even if it exists
Sorry, but digging into details of the logs showed that this is not an error of WinSCP.
About 10 days before doing these tests I resolved the host name to an IP address and used the IP address in the PowerShell script.
For the WinSCP GUI I used the host name.
Now I found out: the IP address of the server has changed prior to the tests, last part from .17 (used in PowerShell) to .18 (used in GUI).
But strange enough: it is still possible to access the .17 server with the same user name as registered for the host name/.18 IP address.
This way I fell prey to this IP address change.
Now I tested the PowerShell script using the host name: it worked!
About 10 days before doing these tests I resolved the host name to an IP address and used the IP address in the PowerShell script.
For the WinSCP GUI I used the host name.
Now I found out: the IP address of the server has changed prior to the tests, last part from .17 (used in PowerShell) to .18 (used in GUI).
But strange enough: it is still possible to access the .17 server with the same user name as registered for the host name/.18 IP address.
This way I fell prey to this IP address change.
Now I tested the PowerShell script using the host name: it worked!