Preheat oven to 400°F. Grease a 9 x 13-inch baking dish with gluten-free cooking spray.
In a medium saucepan, melt the butter over medium-high heat.
Add the milk to the pan and whisk until combined with the butter.
Whisk the gluten-free flour into the milk mixture.
Add the salt, pepper, onion powder, garlic powder, and dried thyme to the cream sauce, stirring until combined.
Add the broth to the pan, and whisk until combined. Cook for 1-2 minutes until the sauce just barely begins to simmer around the edges of the pan and thickens. Remove from the heat once the sauce has thickened.
Spread half of the sliced potatoes in an even layer on the bottom of the greased pan.
Top evenly with half of the sauce.
Sprinkle the Parmesan cheese and 1 cup of the shredded cheddar cheese over the top of the first layer of potatoes and sauce.
Top evenly with the remaining sliced potatoes, the other half of the sauce, and the remaining 1 cup of cheddar cheese.
Cover the baking dish with aluminum foil, and bake for 30 minutes.
Remove the foil and bake uncovered for another 30 minutes, or until the potatoes are cooked through.
Allow the potatoes to cool for a few minutes before serving. Serve warm.