Let’s are going to be tricky with that. Putting legs on a cookie, even a long and skinny one has them running through weak grain. I would stake legs into two pieces of wood arranged in a T and then attach the T to the bottom of the cookie.

May you have the day you deserve!