To make the filling, combine the pumpkin pie, sugar and spices.
For the dough, sift the flour and icing sugar.
Add them to a large bowl together with the baking powder and a pinch of salt.
Cut the butter into cubes, and use your fingertips to rub it with the flour mixture until it resembles breadcrumbs.
Add the vanilla extract, egg and egg yolks, and knead gently into a dough.
Cover the dough with clingfilm, and refrigerate for 30 minutes.
Use a rolling pin to roll the dough into half a cm thickness.
Use 2 sizes of pumpkin cookie cutters - the large one will cut pumpkin shapes for the base, which will be topped with half a teaspoon of filling, the smaller cutter with cut pumpkin shapes into the larger shapes, which will top the cookies.
Press gently to seal the edges.
Repeat with the remaining dough until it's used up.
Bake in the preheated oven at 180 degrees Celsius (350 Fahrenheit) for 10 minutes until the edges are slightly light brown.