Preheat your oven to 350°F (175°C) and lightly grease a 9x13-inch baking dish.
In a large skillet over medium heat, melt 2 tablespoons of butter. Add the sliced squash and chopped onion, sautéing until tender (about 8-10 minutes). Drain any excess liquid and set aside.
In a mixing bowl, combine the shredded cheddar cheese, sour cream, mayonnaise, eggs, garlic powder, salt, and black pepper. Stir until smooth.
Fold the sautéed squash and onions into the cheese mixture, ensuring everything is evenly coated.
Pour the squash mixture into the prepared baking dish, spreading it out evenly.
Sprinkle the crushed Ritz crackers over the top of the casserole. Drizzle with the melted butter for a golden, crispy topping.
Bake in the preheated oven for 30-35 minutes, or until the top is bubbly and golden brown.
Remove from the oven and let cool for 5 minutes before serving.