Preheat your oven to 350°F (175°C).
In a large pot, bring salted water to a boil.
Add the green beans and blanch for 5 minutes.
Drain the green beans and set aside.
In a mixing bowl, combine the cream of mushroom soup and milk.
Add garlic and onion powders if using, and mix well.
Stir in the shredded cheddar cheese until evenly combined.
Add the blanched green beans to the mixture and stir to coat.
Pour the mixture into a greased baking dish.
Top with crispy fried onions evenly across the surface.
Bake in the preheated oven for 25-30 minutes, or until bubbly and heated through.