Preheat the oven to 350 degrees F and line a baking sheet with parchment paper.
Mix the flour, pumpkin pie spice, baking powder, baking soda and salt together in a bowl, set aside.
In a stand mixer, cream together the butter and sugars until light and fluffy. Then add the egg and vanilla and mix together for 1-2 minutes.
Add the dry ingredients into the mixer and mix until everything is well incorporated.
Use a cookie scoop to portion the batter onto the baking sheet.
In another bowl combine the ingredients for the cream cheese swirl and beat together until combined and fluffy.
Spoon a small amount of the cream cheese on top of the cookie dough. Use a toothpick to swirl it around the top fo the cookie. It's best to do one to two swirls. The more you swirl it the messier it will look, so less of a swirl will actually turn out better!
Bake for 10-11 minutes until golden brown around the edges. Let cool, and enjoy! The cookies will get harder as time goes on.