Preheat your oven to 350°F (175°C). Line two large baking sheets with parchment paper and set aside.
In a medium bowl, whisk together the flour, baking powder, and salt. Set aside.
In a large bowl, beat the softened butter and granulated sugar together with a hand mixer or stand mixer on medium speed until light and fluffy, about 2–3 minutes.
Add the eggs one at a time, beating well after each addition. Mix in the anise extract and vanilla extract.
Reduce mixer speed to low and alternate adding the flour mixture and milk in three additions, beginning and ending with the flour. Mix just until a soft dough forms — do not overmix. If the dough feels very sticky, refrigerate for 20–30 minutes before shaping.
Shape & Bake
Scoop the dough by heaping tablespoon and roll into smooth balls between your palms. Place 2 inches apart on the prepared baking sheets.
Bake for 10–12 minutes, until the bottoms are just barely golden and the tops look set but still pale. Do not overbake — the cookies will firm up as they cool.
Remove from the oven and let the cookies cool on the baking sheet for 5 minutes, then transfer to a wire rack set over a sheet of parchment paper (to catch glaze drips).
Make the Almond Glaze & Decorate
Whisk together the sifted powdered sugar, milk, and almond extract in a small bowl until completely smooth. The glaze should be thick enough to coat the back of a spoon but fluid enough to drip slightly. Add milk one teaspoon at a time to adjust consistency.
While the cookies are still slightly warm (not hot), dip the top of each cookie into the glaze, letting any excess drip back into the bowl. Place glaze-side up on the wire rack.
Immediately sprinkle rainbow nonpareils generously over the wet glaze. Work quickly — the glaze sets fast.
Allow the glaze to set completely at room temperature, about 15–20 minutes, before serving or storing.
Store
Once fully set, store cookies in an airtight container at room temperature for up to 5 days, with parchment between layers. They freeze beautifully (unglazed) for up to 3 months.
Notes
Anise substitutes: Replace anise extract with vanilla, lemon, or additional almond extract if preferred. Make-ahead tip: Freeze unglazed baked cookies for up to 3 months; glaze and decorate after thawing. Dough tip: If dough is sticky, refrigerate 20–30 minutes before rolling. Storage: Airtight container at room temperature up to 5 days; refrigerator up to 10 days.