Preheat your oven to 350 degrees Fahrenheit. Line a 9×13 baking dish with parchment paper and lightly spray it with cooking spray.
In a mixing bowl, combine softened butter and cream cheese using an electric mixer until smooth and creamy. Gradually add sugar and mix well before incorporating eggs and vanilla extract.
In another bowl, whisk together flour, baking powder, and salt. Slowly add this dry mixture to your wet ingredients, mixing until a dough forms.
Gently fold in the candy corn, ensuring it’s evenly distributed throughout the dough. Pour your batter into the prepared pan and bake for 30-35 minutes or until the edges are lightly browned.
Once baked, remove the cookie bars from the oven and allow them to cool completely in the pan before frosting.
Prepare the frosting by mixing softened butter, powdered sugar, vanilla extract, and salt until smooth. After cooling, spread the frosting evenly over the cookie bars and sprinkle additional candy corn on top before cutting into squares or bars.