Fry bacon in skillet until browned, place in a small casserole dish and set aside (keep a bit of grease in skillet).
Fry squash in skillet until tender, adding a bit of water as needed to prevent it from sticking to pan. Add garlic and green onions, stirring for another minute. Scrape into the casserole dish with the bacon. Set aside.
In skillet, melt butter then whisk in flour, cooking for a minute. Add in cream and cayenne, whisking until smooth. Reduce heat and simmer to allow it to thicken, about 4 minutes.
Remove from heat and stir in half the cheese and lemon juice and pour into the casserole dish. Stir everything together to combine, top with remaining cheese and broil until hot and bubbling, about 5-10 minutes.