Heat the butter and set aside.
Beat sugar and eggs until frothy, then add vanilla sugar, flour and baking powder.
Stir in the melted butter.
Finally, fold in the apple cubes, spread everything on a baking tray and bake at 220°C for about 30 minutes.
Dust with powdered sugar if desired.