Using log4net in this example to write output, replace with Write-Host etc if needed. Piping to Out-String being the magic here, or else you just get the object class



 foreach ($m in $matches.GetEnumerator()) {
    $log.debugFormat("Matches are {0}", ($m | Out-String))
 }