Re: how to export the winscp-credentials correctly?
Are you asking how to transfer WinSCP configuration?
https://winscp.net/eng/docs/config#transfer
https://winscp.net/eng/docs/config#transfer
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.