@Maxxx: That works too:
https://winscp.net/eng/docs/scripting#variables
But you do not need any workaround. My answer above shows the right syntax.
https://winscp.net/eng/docs/scripting#variables
But you do not need any workaround. My answer above shows the right syntax.