In a small bowl, whisk the flour, baking powder, baking soda and salt. In a medium bowl, beat the butter with the sugar until light and fluffy. Beat in the eggs, 1 at a time, followed by the vanilla. At low speed, beat in the dry ingredients. With a wooden spoon, stir in the pistachios and cranberries.