Preheat the oven to 350 degrees Fahrenheit.
In a medium sized mixing bowl, add in the flour and baking powder. Stir the ingredients to combine them.
In the stand mixer, cream the salted butter and sugar together until all of the butter lumps are gone.
Add in the egg and vanilla extract and mix until just combined.
Slowly add the flour and baking powder mixture into the wet ingredients until the dough forms a ball. If the ball is very sticky, add another tablespoon of flour.
Press the dough into a parchment paper lined 8x8" baking dish and bake for 30-35 minutes. The cookie is done when the top of the cookie doesn't look wet and is slightly golden in color.
Allow the cookie to cool completely before removing from the pan and frosting it.