Preheat the Oven: Preheat your oven to 350°F (175°C).
Grease and flour a 9×9-inch square baking pan or a similar-sized cake pan.
Prepare the Dry Ingredients: In a medium-sized bowl, whisk together the flour,
baking powder,
baking soda,
salt
, ground cinnamon
, and ground nutmeg.
Set this aside.
Cream the Butter and Sugar:
In a large mixing bowl,
cream together the softened butter and 1 cup of granulated sugar until the mixture is light and fluffy.Add Eggs and Vanilla: Beat in the eggs, one at a time, and then add the vanilla extract. Mix until well combined.Incorporate Dry Ingredients and Sour Cream: Gradually add the dry ingredient mixture to the wet ingredients, alternating with the sour cream. Start and end with the dry