
    $resp = Invoke-RestMethod -Uri $listurl -Method $method -Headers @{Authorization = "Basic $encodedPat"}

    foreach ($project in $resp.value)
    {
        $projname = $project.name
        $projStatus = $project.state
        #Write-Host "Inspecting project $projname - $projStatus" -ForegroundColor Blue -BackgroundColor Cyan
        if ($projname -eq "davesvab-ContosoShuttle1" -and $projStatus -eq "wellFormed")
        {
            break 
        }
        Start-Sleep -seconds 1
    }

    if ($proj