Preheat the oven to 350 degrees Fahrenheit and lightly grease your casserole dish.
If using fresh green beans, blanch them in boiling water for about 5 minutes, then drain. Frozen green beans can be used straight from the freezer.
In a mixing bowl, combine the cream of mushroom soup, milk, garlic powder, onion powder, and half of the fried onions. Add salt and pepper to taste.
Stir in the green beans and shredded cheese until everything is evenly coated.
Transfer the mixture to your casserole dish and smooth the top.
Bake for 25 minutes, then sprinkle the remaining fried onions over the top.
Bake for an additional 5 minutes or until the onions are golden and the casserole is bubbling around the edges.
Let it rest for a few minutes before serving.