No, currently WinSCP requires the key to be stored in a file.
I have a powershell script to automate SFTP file uploads that runs under a windows scheduled tasks. It uses SSH Key authentication . As part of our security standards, they key has been vaulted in Cyberark and a restapi can fetch the key. But i see that the sessionoptions has only a path to the SSH key. Is there anyway to supply the SSH key as a string retrieved from the restapi call to CyberArk central credential provider?