Preheat the oven to 350°F (175°C).
Cook the macaroni according to package instructions until al dente, then drain.
In a medium saucepan, melt the butter over medium heat.
Whisk in the flour to create a roux, stirring until smooth and slightly golden.
Gradually add the milk and heavy cream, whisking constantly to avoid lumps.
Stir in the garlic powder, onion powder, salt, and pepper, then bring to a simmer.
Remove from heat and add the shredded cheddar cheese, stirring until melted.
Combine the cooked macaroni with the cheese sauce and mix well.
Transfer the mixture to a greased baking dish, spreading it evenly.
If desired, sprinkle breadcrumbs over the top for added crunch.
Bake in the preheated oven for 20-25 minutes or until golden and bubbly.
Allow to cool slightly before serving.