private static void ExecuteCommand(UPS target, UPSDClient client) { if (client.InstantCommand(target.Name, command, addParam) == false) { Console.WriteLine("UNKNOWN ERROR"); return; } Console.WriteLine("OK"); }