01 - Preheat the oven to 400°F. Line a large baking sheet with parchment paper and set aside.
02 - Using a sharp knife, carefully halve the spaghetti squash lengthwise. Scoop out and discard the seeds. Place both halves cut side down on the prepared baking sheet. Roast for 35 to 40 minutes, until the flesh is fork-tender and separates easily into strands.
03 - While the squash roasts, melt the butter in a medium saucepan over medium heat. Whisk in the gluten-free flour and cook, stirring constantly, for 1 minute to form a smooth roux.
04 - Gradually pour in the whole milk while whisking vigorously to prevent lumps. Add the Dijon mustard, garlic powder, onion powder, salt, and black pepper. Continue cooking and stirring for 3 to 4 minutes until the sauce thickens enough to coat the back of a spoon.
05 - Remove the saucepan from heat. Add the shredded sharp cheddar and Gruyère cheeses, stirring until completely melted and the sauce is silky smooth.
06 - Once the squash is cool enough to handle, use a fork to scrape the flesh into long spaghetti-like strands. Discard the empty skins.
07 - Add the shredded squash strands directly into the cheese sauce, tossing gently until every strand is evenly coated. Transfer the mixture to a greased 9×13-inch baking dish, spreading it into an even layer.
08 - In a small bowl, combine the gluten-free breadcrumbs, grated Parmesan, and melted butter. Sprinkle the mixture evenly over the top of the squash casserole.
09 - Bake at 400°F for 10 minutes, or until the topping is golden brown and the cheese sauce is bubbling around the edges. Garnish with chopped fresh parsley and serve immediately.