Wash the mushrooms then roughly chop them into small pieces. Mince the garlic. Begin preheating the oven to 350ºF.
Heat a large skillet over medium, then add the olive oil. Swirl to coat the surface of the skillet, then add the mushrooms, garlic, and a pinch of salt and pepper. Sauté the mushrooms until they release all their moisture, the skillet dries up again, and the edges of the mushrooms begin to brown slightly (7-10 minutes).
Add the butter and flour the skillet with the mushrooms. Continue to sauté for 2-3 minutes, or just until the flour begins to coat the bottom of the skillet and turns golden brown.
Whisk the vegetable broth into the skillet until all of the flour has dissolved off the bottom of the skillet. Allow the broth to come to a simmer as you whisk, at which point it will thicken.
When the liquid in the skillet has thickened, whisk in the milk. Allow the mixture to return to a simmer after adding the milk, then add the cream cheese (cut into small chunks). Continue to whisk and cook until the cream cheese has fully melted into the sauce. Taste the sauce and add another pinch of salt and pepper if needed. You want the sauce to be slightly over seasoned so the flavor doesn't get too diluted once the green beans are added.
Remove the skillet from the heat and stir in the green beans (no need to thaw). The cold beans will thicken the sauce considerably. Transfer the beans and sauce to a 2-3 quart casserole dish. Top with the fried onions and transfer to the oven.
Bake the Green Bean Casserole for 20-25 minutes, or until heated through and the fried onions on top have browned slightly. Serve warm.
*I used Better Than Bouillon to make my vegetable broth, which is quite flavorful and provides a good amount of salt. If you are using a less flavorful broth your final dish may also be less flavorful.**I used store bought crispy French fried onions, like these. If you are outside the United States or otherwise cannot get these, there are several recipes online for fried onions that you can use in their place.