Melt butter in a saucepan over medium heat
Add minced garlic or shallot if desired and cook briefly
Stir in flour and cook for 1 to 2 minutes
Slowly whisk in milk or cream until smooth
Cook, stirring constantly, until the sauce thickens
Season with salt and black pepper
Add grated cheese, herbs, or spices if desired
Remove from heat and serve warm
