Preheat oven to 350F. Remove peas from the freezer and thaw.
In a medium skillet, melt the butter over medium heat.
Add the onion and garlic to the butter and cook for 1-2 minutes or until the onion softens and the garlic is fragrant.
Add the flour and whisk to combine. Cook for 1-2 minutes or until the raw flour flavor is gone.
While whisking, add the half & half. Continue whisking in the pan until it thickens and coats the back of a spoon.
Remove from the heat.
Prepare an 8x8 baking dish with nonstick cooking spray.
In a large bowl, combine the thawed peas, the drained mushrooms, the shredded cheese, and the thickened onion/garlic mixture.
Stir to combine.
Pour into the prepared baking dish and spread evenly.
Bake at 350F for 20 minutes.
Remove and spread the fried onions over the top evenly.
Bake for an additional 5 minutes.
Remove from the oven and enjoy!