In a bowl, cream the butter and the brown sugar together. Next, mix in the applesauce and vanilla. Separately, add the flour, baking soda, baking powder, apple pie spice and the salt to a bowl. Combine the dry and wet ingredients. Now, fold in the oats and the diced apple.