# looped through 25 times
foreach($healthCheck in $healthChecks){
 
    if($healthCheck.HealthCheck){
 
        Get-WebFarm -ServerName $server -Url $healthCheck.Url | Set-WebFarm -HealthCheckInterval 60
         
        # This next line would allow IIS more time to read in configuration updates and handle appPools restarts
        Start-Sleep 3
        
    }
}