Using
See https://winscp.net/eng/docs/scripting#configuration
Anyway, scripts do not use presets. Only default transfer settings are uses in the script.
A preset with unconditional rule actually behaves like a default settings in GUI. But not in script.
-filemask
is the correct solution. It is better to isolate your scripts from GUI configuration, so you won't break the script, when the configuration changes.
See https://winscp.net/eng/docs/scripting#configuration
Anyway, scripts do not use presets. Only default transfer settings are uses in the script.
A preset with unconditional rule actually behaves like a default settings in GUI. But not in script.