function Stop-IcingaService() { param( $Service ); if (Get-Service $Service -ErrorAction SilentlyContinue) { Stop-Service $Service; } }