$token = Get-Content 'c:\Users\Administrator\.ssh\coolify-redbull-token'
$baseUrl = "https://redbull.rede5.com.br/api/v1"

Write-Host "Verificando status das aplicacoes..."
$response = Invoke-RestMethod -Uri "$baseUrl/applications" -Headers @{Authorization = "Bearer $token" } -Method Get

$apps = $response | Where-Object { $_.name -match 'food' }
foreach ($a in $apps) {
    Write-Host "App: $($a.name) - Status: $($a.status)"
}
