01 - Preheat the oven to 400°F. Line a baking sheet with parchment paper and set aside.
02 - Cut the spaghetti squash in half lengthwise and scoop out the seeds. Place the halves cut side down on the prepared baking sheet. Roast for 35 to 40 minutes until the flesh is tender and easily shredded with a fork.
03 - While the squash roasts, melt the butter in a saucepan over medium heat. Whisk in the gluten-free flour and cook for 1 minute to form a smooth roux.
04 - Gradually whisk in the whole milk until smooth and no lumps remain. Add the Dijon mustard, garlic powder, onion powder, salt, and pepper. Cook, stirring constantly, until the sauce thickens, about 3 to 4 minutes.
05 - Remove the saucepan from heat. Stir in the shredded cheddar and Gruyère cheeses until fully melted and smooth.
06 - When the squash is cool enough to handle, use a fork to shred the flesh into spaghetti-like strands. Discard the skins.
07 - Add the spaghetti squash strands to the cheese sauce and toss until evenly coated. Transfer the mixture to a greased baking dish.
08 - In a small bowl, mix the gluten-free breadcrumbs with the melted butter and grated Parmesan. Sprinkle evenly over the squash mixture.
09 - Bake at 400°F for 10 minutes, or until the top is bubbly and golden brown.
10 - Remove from the oven, garnish with chopped fresh parsley, and serve hot.