Melt butter in the microwave, about 1 minute. Stir in sugar and cocoa powder. Blend in eggs one at a time using an electric mixer; add vanilla extract. Combine flour (see Cook’s Note), baking powder, and salt in a small bowl and add to batter. Mix until well combined and pour into the prepared baking pan. Level with a knife or spatula.