Preheat the oven to 350°F (176°C). Line two baking sheets with parchment paper.
In a mixing bowl, whisk the flour, cornstarch, and salt. Set aside.
In a separate mixing bowl, use a hand mixer or a stand mixer to beat the softened butter and granulated sugar until it’s pale yellow and fluffy, after a few minutes.
Add the egg and vanilla to the butter mixture and beat again until it’s creamy and fluffy, after another minute.
Add the dry ingredients to the wet ingredients, and mix with a large spoon until it forms a really soft, crumbly dough.
Add the milk and gently mix with a spoon until it’s a smooth consistency that you can pipe with.
Fill a piping bag assembled with an open star tip with the cookie dough. Pipe the dough onto your prepared baking sheets in any shape you like. Traditionally the dough is piped in a tight “S” or figure-8. You can also pipe it in lines, circles, or even letters.
Optional: Sprinkle demerara sugar on top of the unbaked cookies.
Bake for 10 to 12 minutes, until the cookies are golden on the edges. Rotate the baking pans 180 degrees halfway through baking, and switch their positions so the top one is on the bottom and vice versa.
Allow the cookies to cool for a few minutes on the baking sheet, then transfer them to a cooling rack to finish cooling.
Optional: Dip one side of each cookie in melted chocolate then sprinkle crushed peppermint on the melted chocolate so it sticks. Place the cookies back on the wire rack or a sheet of parchment paper so the chocolate can cool and set for at least 1 hour.