Re: Automatically Download Files From Many Subfolders - Script
The article you refer to has a section about "scripting" implementation:
https://winscp.net/eng/docs/script_download_files_to_same_folder#script
https://winscp.net/eng/docs/script_download_files_to_same_folder#script