Re: Programmatically change the Key Exchange Algorithm used.
Do the configuration you need in GUI and then have the GUI generate the code for you:
https://winscp.net/eng/docs/ui_generateurl
https://winscp.net/eng/docs/ui_generateurl