function Write-IcingaPluginOutput() { param( $Output ); if ($global:IcingaDaemonData.FrameworkRunningAsDaemon -eq $FALSE) { Write-IcingaConsolePlain $Output; } else { # New behavior with local thread separated results $global:Icinga.CheckResults += $Output; } }