-----------------------------------------------------
My task is to connect to target server through WINSCP and put a test.txt file onto server.

Issue: When I execute the batch script the first issue is that it is asking for user ID every time . When I provide "rest2" it will open the server session but will never put the file onto target server.

Log file just provides an open blank text file with success in the file name.

Kindly help me as I am new to WINSCP and I need this work to be completed for my project delivery.