Preheat the oven to 175 C. Spread the pecans out in a single layer on an un-greased baking tray. Bake for 5 to 7 minutes until they are fragrant and very slightly darkened. Set aside to cool, then chop coarsely. Keep the oven on at 175 C.
Line an 8 inch square baking pan with non-stick baking paper, leaving an overhang for easy removal.
In a mixing bowl, beat the butter and sugars using a hand mixer, until pale and fluffy. Add the egg and vanilla and beat again till combined.
Sift in the flour, baking soda, baking powder and salt, if using. Fold to combine into a thick, sticky dough. Lastly, fold in the sprinkles, white chocolate chips, and toasted pecans, making sure they're evenly dispersed (I like to reserve a couple tablespoons of all the mix-ins to decorate the top of the bars). The dough is thick so this step might require some arm muscle.
Spread the dough evenly into the prepared pan. Smoothen the top, then decorate with the reserved chips, sprinkles and pecans.
Bake for 20 to 25 minutes until the edges of the bars have darkened and the center looks set but still a little pale and puffy. The cookie bars will continue to cook and firm up as they cool. Over-baking till the surface is completely will dark will lead to dry and crunchy cookie bars.
Let the bars cool completely at room temperature, then lift out using the paper overhang and slice into 16 equal pieces. Store in an airtight tin at room temperature for 4 to 5 days. In the fridge, they'll last about 10 days and longer in the freezer. Bring back to room temperature before eating. Happy baking!