Preheat oven to 350 degrees.
In a large pot, add enough water to cover the bottom of the pot. Add green beans, salt and pepper to taste, and cover. Steam green beans for 10 minutes.
While green beans steam, make the cheese sauce. Add one cup of heavy cream to a medium sauce pan and heat over medium heat.
Once heavy cream is warm, add cream cheese and melt in.
Once cream cheese has melted, stir in 1/4 of a cup Parmesan cheese.
Stir in granulated garlic and and salt and pepper to taste.
Transfer steam green beans to a 9 inch baking dish and cover with cheese sauce. Make sure green beans are evenly coated with sauce.
Sprinkle remaining Parmesan cheese over the top of casserole. Place in preheated oven and bake uncovered until cheese is fully melted, about 20 minutes.
While the casserole bakes, add olive oil to a small pan and warm over medium-low height. Add shallots and saute until shallots are nice and caramelized, about 10 minutes. Make sure they don't burn.
After 20 minutes, turn your oven to broil and broil the top of the casserole until nice and brown, about 1 to 2 minutes. You have to be very careful during this step and watch your casserole because the broiler works very fast and it is easy to burn your food.
Remove casserole form oven and garnish with shallots.
Serve and enjoy!