Preheat oven to 350 degrees. Spray an 8-inch square pan with cooking spray.
In a bowl, sift together the sugars, flour, cocoa powder, salt and baking powder.
Stir in the melted butter and vanilla. Whisk in the eggs, one at a time, until incorporated.
Spread batter into the prepared pan and bake for 25 to 30 minutes.