var result = mySet.FindCommand("command1");

Console.WriteLine(result.Name); // Returns 'command1'