Preheat your oven to 350°F (175°C) and grease a 9x9-inch baking dish.
In a bowl, whisk together flour, baking powder, spices, and salt.
In another bowl, beat eggs and sugar until light and fluffy. Add pumpkin puree and vanilla extract, mixing until well combined.
Gradually fold in the dry ingredients until just incorporated. Pour the batter into the prepared dish and spread it evenly.
Bake for 25-30 minutes or until a toothpick inserted in the center comes out clean.
Let the cake cool in the dish for about 10 minutes, then pierce it all over with a fork.
Prepare the tres leches mixture by combining whole milk, sweetened condensed milk, and evaporated milk in a separate bowl. Slowly pour this mixture over the warm cake, ensuring it soaks in evenly.
Refrigerate the cake for at least 2 hours or overnight to allow the flavors to meld.