Heat oven to 350 degrees. Spray 24 mini muffin cups with cooking spray.
Place one cookie dough square into each muffin cup.
Press dough in bottom and up side of each muffin cup, pressing slight rim above top.
Bake 10 to 13 minutes. Cool 10 minutes in pan. Remove to cooling rack to cool completely.
In a disposable decorating bag (or use a large resealable plastic bag) with a star tip, spoon frosting into bag.
Fill each cup with frosting, top with sprinkles. One can of frosting will be enough for 24 cookies.