for some reasons I can't update to latest.
For what reasons?
Even if you cannot upgrade your production copy of WinSCP, you can still use a portable version of the latest release just to generate the code. Though it can happen that the generated code won't be 100% compatible with your old version.
But we do not support old versions of WinSCP. You must be using the latest version, for your own security.