Cook the elbow macaroni according to the package directions until just tender, then drain well.
Warm the butter, milk, heavy cream, garlic powder, onion powder, salt, and black pepper on low in a greased slow cooker for about 20 minutes.
Add the shredded cheddar gradually, stirring until melted, then cook covered on low for 15 to 20 minutes.
Stir in the drained macaroni and cook covered on low for 10 to 15 minutes, until hot throughout and coated with sauce.
Check that the center reaches 165°F, then serve or hold on warm for up to 1 hour.