Process{#Filter resultsIf($ResultCollection){Switch($PsCmdlet.ParameterSetName){'Name'{Foreach($Nin$Name){Write-Debug-Message"[$($MyInvocation.MyCommand)] Return result(s) with the filter: $($N)"Write-Output$ResultCollection|Where-Object{$_.Name-like$N}Write-Debug-Message"[$($MyInvocation.MyCommand)] Found $($ResultCollection.Count) item(s)"}}'ID'{Foreach($Iin$ID){Write-Debug-Message"[$($MyInvocation.MyCommand)] Return result(s) with the filter: $($I)"Write-Output$ResultCollection|Where-Object{$_.Id-like$I}Write-Debug-Message"[$($MyInvocation.MyCommand)] Found $($ResultCollection.Count) item(s)"}}}#End Switch}# End If ($ResultCollection)}# End Process}# End Function