Preheat the oven to 350F and line a 8" baking pan.
Place the margarine in a stand mixer and cream until it changes in color. Add in the peanut butter and sugars and mix until well blended. Add in the vanilla.
In a separate bowl, sift the flour and add the baking powder, cinnamon and nutmeg.
Add one egg and about half of the flour and mix. Add another egg and mix.
Grate the apple and toss in the rest of the flour mixture and add to batter. Add the final egg.
Pour into prepared pan and bake for 25-30 mins or until a skewer comes out clean.
Allow to cool on a cooling rack prior to eating and/or frosting (and then eating).