Preheat your oven to 350°F (175°C). Grease your 9x13-inch baking pan with cooking spray or butter and lightly dust it with flour.
In a medium-sized bowl, whisk together the flour, baking powder, baking soda, cinnamon, nutmeg, ginger, cloves, and salt. Set aside.
In a large mixing bowl, beat the granulated sugar, brown sugar, and vegetable oil until smooth. Add the eggs one at a time, mixing well after each addition. Stir in the pumpkin puree and vanilla extract.
Gradually add the dry ingredients to the wet ingredients, mixing until just combined. Be careful not to overmix, as this can make the cake dense.
Pour the batter into the prepared baking pan and spread it evenly. Bake for 30–35 minutes or until a toothpick inserted into the center comes out clean.
Allow the cake to cool in the pan for 10 minutes before transferring it to a cooling rack. Let it cool completely before adding frosting.
In a medium bowl, beat the cream cheese and butter until smooth and fluffy. Gradually add the powdered sugar and mix until well incorporated. Stir in the vanilla extract.
Spread the cream cheese frosting evenly over the cooled cake. Slice into squares, serve, and enjoy!