Winscp portable script running in background

Winscp portable script running in background

Basically i have a batch script calling winscp and then manipulating the files(compression, parsing, copying, etc) once they are downloaded

The issue im running into is when i call my batch script, winscp seems to get executed into the background causing the remainder of the commands in the batch script to not work so well as not all files have been downloaded yet

The winscp call in my batch script is very simple and looks something like the following