Whisk flour, baking powder, and salt together in a medium bowl.
Beat butter and sugar in a large bowl until pale and fluffy.
Beat in egg and vanilla extract until well combined.
Add flour mixture on low speed until dough comes together.
Divide dough into two discs, wrap in plastic, and chill for one hour.
Preheat oven to 350 degrees F and line two baking sheets with parchment paper.
Roll dough on a floured surface to one-quarter inch thickness.
Cut trees using a Christmas tree cookie cutter and arrange one inch apart on sheets.
Bake for 9 to 11 minutes until edges are barely golden, then cool completely on wire racks.
Outline and flood cookies with royal icing, then dust generously with green sparkling sugar.