when i tried to extact results from this code
$Output = @()
foreach($emailproxy in $emailproxies)
{
if($emailproxy.Mail -like "*com" -or $emailproxy.Mail -like "*org"){ Write-Host $emailproxy.Mail}
$Output = New-Object -TypeName PSObject -Property @{
Mail = $emailproxy.Mail
} | Select-Object Mail
}
$Output | Export-Csv C:\TempDownloads\results.csv
I only get 1 result .. why is that ?