Tried to change the .BAT File based on the recommendation in other messages
"C:\Program Files (x86)\WinSCP\WinSCP.com" /log="D:\XXX\Setup - WinSCP\Auto\WinSCP.log" /ini=nul /script="D:\XXX\SyncToRemoteXXXScript.txt"
Get the Error message : Proxy error: 403 Forbidden
Running though WINSCP GUI it was working absolutely fine.
Once I created the script and schedule in the task schedule I am getting this error message.
Now the Winsock GUI IS also not working.
Error message : proxy:403 forbidden.
I checked in another system it was working fine with WinSCP gui.
I think it is not releasing the session or cache after executing the batch file.
Tried to clear the all data and created a fresh still the same problem.
I am really struck at this time.since we are not able to automate the process.