Re: Console App interaction
                WinSCP script is not a programming language.
You have to implement your query in a "parent script" (e.g. a batch file) that runs the WinSCP script.
If you need the query between individual WinSCP operations, you will have to create multiple scripts.
Or use WinSCP .NET assembly and drive it from a PowerShell (or any other) script.
https://winscp.net/eng/docs/library_powershell
        You have to implement your query in a "parent script" (e.g. a batch file) that runs the WinSCP script.
If you need the query between individual WinSCP operations, you will have to create multiple scripts.
Or use WinSCP .NET assembly and drive it from a PowerShell (or any other) script.
https://winscp.net/eng/docs/library_powershell