Ask an adult to heat the oven to 350°F (175°C) and line a muffin tin with 12 paper cases.
Put the flour, sugar, baking powder, and salt in a large bowl. Let your child stir them together with a whisk.
Add the softened butter, eggs, milk, and vanilla. Beat on low speed until smooth, then on medium speed for 30 seconds. Do not overmix.
Let your child spoon the batter into the cases, filling each about two thirds full.
Ask an adult to put the tin in the oven and bake for 18 to 20 minutes, until the tops spring back when gently touched.
Let an adult take the tin out of the oven. Cool the cupcakes in the tin for 5 minutes, then move them to a wire rack to cool fully.
Beat the frosting ingredients together until smooth and fluffy. Let the kids spread it on the cool cupcakes and add sprinkles.