It depends on the tools you have. A piping bag is the easiest way and makes for such a pretty cupcake but a good old butter knife can do the trick! It's up to you and whatever equipment you have on hand.