$email = 'tiago.ribeiro@inventcloud.com.br'
$key = '7ae5565ab2dcdfdfdd66efb1105e27d18d186'
$h = @{ 'X-Auth-Email' = $email; 'X-Auth-Key' = $key; 'Content-Type' = 'application/json' }

$zones = Invoke-RestMethod 'https://api.cloudflare.com/client/v4/zones?name=invista.com.br' -Headers $h
$zoneId = $zones.result[0].id
Write-Host "Zone ID: $zoneId"

$records = Invoke-RestMethod "https://api.cloudflare.com/client/v4/zones/$zoneId/dns_records?per_page=100" -Headers $h
$records.result | Where-Object { $_.name -match 'crivo|mfe|shell|user' } | ForEach-Object {
    $proxied = if ($_.proxied) { "PROX" } else { "NOPROX" }
    Write-Host "$($_.type) $proxied $($_.name) -> $($_.content)"
}
