Preheat the over to 350°F. Spray a metal pan with cooking spray. Line your pan with parchment paper, pressing down into the corners and creases. Leave enough parchment paper hanging over that you can use it as a handle to lift it out of the pan.
Cream the butter and sugars together. You can do it by hand, with a hand mixer or in a stand mixer.
Add the egg, peanut butter and vanilla. Mix well.
Add the flour, baking soda and oatmeal and mix until combined. If using peanut butter chips in your bars, add these last.
Dump the batter into your pan. It will be thicker, like cookie dough. You can use a silicone spatula or your hands to press it into an even layer.
To bake: If using a 8x8 pan, bake for 20 minutes. If using a 9x13 pan, bake for 15 minutes. You will know it is done when a toothpick comes out clean and the edges are lightly browned.
Remove from the oven and let cool completely.
When bars are cool, pour the frosting over them and spread it out all the way to the edges.
Let the frosting set for 10-15 minutes before lifting the bars out of the pan, using the parchment paper as handles. Then cut into squares and serve.