Preheat your oven to 350°F (175°C). Grease and line the baking pan with parchment paper for easy removal.
In a mixing bowl, melt the butter in the microwave or in a small saucepan over low heat. Let it cool slightly.
Add the granulated sugar to the melted butter and mix until well combined.
Beat in the eggs one at a time, followed by the vanilla extract, until smooth.
In a separate bowl, whisk together the flour, cocoa powder, baking powder, and salt.
Gradually add the dry ingredients to the butter mixture, mixing until just combined.
Fold in the sourdough starter until everything is well incorporated. If using, add chocolate chips or walnuts at this stage.
Pour the brownie batter into the prepared baking pan and spread it evenly.
Bake in the preheated oven for 20-25 minutes, or until a toothpick inserted in the center comes out with a few moist crumbs.
Allow the brownies to cool in the pan for about 10 minutes before transferring them to a wire rack to cool completely.
Cut into squares and serve.