Prep the pan and oven. Line a 9x13-inch pan with parchment, leaving overhang for easy lifting.
Lightly grease. Preheat oven to 350°F (175°C).
Whisk the dry ingredients. In a medium bowl, whisk the flour, cornstarch, baking powder, baking soda, and salt. Set aside.
Cream the butter and sugar. In a large bowl, beat the softened butter and granulated sugar on medium-high until light and fluffy, about 2–3 minutes.
Scrape down the bowl.
Add eggs and flavoring. Beat in the egg and egg yolk until smooth. Mix in vanilla and almond extract.
Combine wet and dry. Add the dry ingredients in two additions, mixing on low. If the dough looks dry or crumbly, add milk 1 tablespoon at a time until it comes together into a soft, thick dough.
Press into the pan. Transfer dough to the prepared pan.
Use clean hands or a spatula to press it evenly to the edges. For a festive touch, sprinkle a little colored sugar on top and lightly press it in.
Bake. Bake for 16–20 minutes, until the edges are set and lightly golden and the center looks just done. Do not overbake—slightly under is better for soft bars.
Cool completely. Place the pan on a wire rack and let the bars cool fully in the pan.
Lifting too early can cause cracking.
Make the frosting. Beat the softened butter until creamy. Add powdered sugar, salt, and vanilla. Beat on low to combine, then on medium, adding cream 1 tablespoon at a time until smooth and spreadable.
Tint with gel food coloring to your chosen Halloween shade.
Frost and decorate. Lift the cooled slab from the pan using parchment. Spread frosting evenly. Top with sprinkles, candy eyes, or sanding sugar.
Slice and serve. Use a sharp knife to cut into 24 squares (or smaller bites).
Wipe the knife between cuts for clean edges.