Heat the oven to 350°F and line a 12-cup muffin tin with paper liners.
Whisk the flour, baking powder, and salt in a medium bowl.
Beat the butter and sugar 2 to 3 minutes until pale and fluffy. Add the eggs one at a time, then the vanilla.
Add the flour mixture alternately with the milk, beginning and ending with flour. Mix just until combined.
Divide the batter among 6 bowls and tint each a rainbow color. Layer one teaspoon of each color into every liner without stirring.
Bake 18 to 20 minutes until a toothpick comes out clean. Cool 5 minutes in the pan, then fully on a rack, about 30 minutes.
Beat the butter, then add powdered sugar gradually with the cream, vanilla, and salt. Divide into 6 bowls, tint each, stripe onto plastic wrap, roll into a log, and load into a piping bag.
Pipe tall swirls onto the cooled cupcakes and shower with sprinkles.