How do I debug this hash set where loop not finding strings with the contains that I know exist in the key field?
# Create a hash set from the local hashes.
$localHashSet = [System.Collections.Generic.HashSet[string]] $localmd5
# Loop over all remote hashes to find those not among the local hashes.
$remotefilehash.Where({ -not $localHashSet.Contains($_) })
# Set the $diffmd5 var to that of the not found remote file hash