Heat butter in a large nonstick pan (that's also oven-safe) over medium-high heat.
Add squash, onions and carrots (if using) and cook for a few minutes until partially tender.
Turn off heat and keep aside.
In a large Ziploc bag, add eggs, cheddar cheese, mozzarella cheese, milk, sour cream, salt, pepper, garlic powder, onion powder, Italian seasoning.
Seal bag and toss until combined.
Add this mixture to the pan with the cooked squash and onions.
Mix gently until combined.
In another Ziploc bag, add breadcrumbs, Ritz crackers, butter.
Seal bag and toss until combined. If you want a thicker topping, double the topping ingredients.
Sprinkle this topping evenly over the squash mixture.
Bake at 350 degrees F for 30-40 minutes or until topping is golden brown and filling is not jiggling too much.