get-mailboxserver | Where-Object {($_.name -like "foo*") -or ($_.name -like "bar*")} | Sort-Object Name | ForEach-Object {Get-mailboxstatistics -server $_.name | Where-Object {$_.DisconnectDate -ne $null} | Select-Object serverName,displayName,DisconnectDate | Format-Table -autosize} | Out-File disconnect.txt