Heat oven to 350°F. Spray an 8×8-inch pan with baking spray.
Blend beans, brown sugar, granulated sugar, melted butter, egg, and vanilla until completely smooth.
Whisk flour, baking powder, and salt in a separate bowl.
Add wet ingredients to dry ingredients and stir just until combined.
Fold in M&M's.
Spread into the pan and add extra M&M's into the top.
Bake 22–27 minutes, until the edges are set and the center is slightly soft.
Cool completely before cutting.