There's no need to store the PSCustomObject in an array.
Get-ADComputer -Server domain.com-filter * |
ForEach-Object {
[PSCustomObject]@{
"Name" = $_.Name
"ObjectGUID" = ($_.ObjectGUID -replace "-", "")
}
} |Export-Csv "Your-CSV-File-Name-Here" -NoTypeInformation