Okey, i got this working and the powershell script is enumerating the files.
So i get an reply saying this and this file exist,
How would i proceed with this?
See any of the many examples for use of
Session.EnumerateRemoteFiles
. For example this one:
https://winscp.net/eng/docs/library_example_listing_files_matching_wildcard