01 - Preheat oven to 350°F (175°C) and line a standard muffin tin with 12 cupcake liners.
02 - In a medium bowl, whisk together flour, baking powder, and salt until well distributed.
03 - In a large bowl, beat softened butter and granulated sugar together until pale and fluffy using an electric mixer. Add eggs one at a time, blending after each addition.
04 - Stir in crushed pineapple, reserved pineapple juice, milk, and vanilla extract until evenly combined.
05 - Add dry ingredients to the wet mixture, mixing just until incorporated. Avoid overmixing the batter.
06 - Divide batter evenly among cupcake liners. Bake in the preheated oven for 16 to 18 minutes, until a toothpick inserted into the center comes out clean.
07 - Allow cupcakes to cool in the pan for 5 minutes, then transfer to a wire rack to cool completely.
08 - Beat butter and cream cheese until smooth. Gradually add sifted powdered sugar, mixing on low speed. Incorporate pineapple juice, vanilla extract, and yellow food coloring if using. Beat on high until frosting is light and fluffy.
09 - Once cupcakes are thoroughly cooled, pipe or spread frosting onto each. Garnish with dried pineapple or maraschino cherries as desired.