In a bowl combine the flour, baking powder, and salt. Stir those together and set it aside for a moment.
In your mixing bowl, combine the butter and sugars. Beat these together until fluffy.
Add in the eggs, one at a time, mixing the first completely in before adding the second.
Mix in the vanilla.
Add in your flour mixture and mix until it is well combined. Make sure to scrape the sides of your bowl with a rubber spatula to get everything mixed in.
Set aside the mixing bowl for a moment and finely chop the pecans and the candy bar.
Add the chopped pecans and candy bar to the dough and stir them in.
Spread the dough into a greased 9×13 inch baking pan. Bake for 25-30 minutes or until a wooden toothpick inserted into the center comes out clean.