I just started using EnumerateRemoteFiles and it shows the listing twice in the WinSCP log (set using $session.SessionLogPath = 'C:\WinSCPLog.txt'). It would be nice to suppress this in the log so I don't have a huge log every time I run this.
$InvFiles = $session.EnumerateRemoteFiles($SourcePath, $InvFilter, [WinSCP.EnumerationOptions]::None)
where $InvFilter is
$InvFilter = 'INV*.dat'
There are only a few INV files in the directory.
This is not what this thread is about.
Anyway, did you try to enable reduced logging?