Prepare the Dough: In a mixing bowl, cream together butter and sugar until light and fluffy. Add eggs and vanilla extract, and beat until smooth.
Combine Dry Ingredients: In a separate bowl, whisk flour, baking powder, and salt. Gradually add to the wet mixture until a soft dough forms. If the dough is too crumbly, add a tablespoon of milk.
Chill the Dough: Form the dough into a ball, wrap it in plastic wrap, and chill for 30 minutes to make it easier to roll out.
Roll and Cut: On a floured surface, roll the dough to about ⅛-inch thickness. Use a round cutter (about 3 inches wide) to cut circles.
Add Filling: Spoon about 1 teaspoon of filling into the center of each circle. Fold edges into a triangle shape, pinching firmly at the corners to seal.
Bake: Arrange on a parchment-lined baking sheet and bake at 350°F (175°C) for 18–20 minutes or until lightly golden.
Cool and Serve: Let cool completely before serving. Enjoy your Hamantaschen with tea, coffee, or as a sweet Purim celebration treat!