The
See https://winscp.net/eng/docs/commandline#scripting
winscp.exe
when executed for scripting does not open any window by default. It opens a console window, only if you tell it so, by using /console
command-line switch.
See https://winscp.net/eng/docs/commandline#scripting