private static void ListCommands(UPS target, UPSDClient client) { Dictionary <string, string> commands = client.ListUPSCommands(target.Name); Console.WriteLine("Instant commands supported on UPS [{0}]:", target.Name); Console.WriteLine(); foreach (KeyValuePair <string, string> item in commands) { Console.WriteLine(item.Key + " - " + item.Value); } }