Never mind, I found it (https://winscp.net/eng/docs/faq_script_ini) :-D.
Here's what I did - in case someone needs it:
I created a file (whatever.ini) with the following content:
I created another file (whatever.ftp) with the following content
Than launched the command line tool like this:
Here's what I did - in case someone needs it:
I created a file (whatever.ini) with the following content:
[Sessions\X]
HostName=host.domain.root
PortNumber=1234
UserName=«the user name»
Password=«the password»
FSProtocol=5
Ftps=2
I created another file (whatever.ftp) with the following content
Than launched the command line tool like this:
winscp.com /script=whatever.ftp /ini=whatever.ini