Preheat your oven to 350°F (175°C). Grease a 9x13-inch baking pan and set aside.
In a medium bowl, whisk together the flour, baking powder, baking soda, and salt. Set aside.
In a large bowl, cream the softened butter and granulated sugar together until light and fluffy, about 3-4 minutes.
Add the eggs, vanilla extract, and almond extract to the butter mixture, mixing until well combined.
Gradually add the dry ingredients to the wet ingredients, mixing until just combined.
Fold in the rainbow sprinkles gently.
Spread the cookie dough evenly into the prepared baking pan.
Bake for 20-25 minutes, or until the edges are lightly golden and a toothpick inserted in the center comes out clean.
Allow the cookie cake to cool in the pan for about 10 minutes, then transfer it to a wire rack to cool completely.
Once cooled, spread the frosting evenly over the top and sprinkle with red, white, and blue sprinkles for decoration.