In a medium bowl stir together flour, protein powder, cocoa powder, baking powder, and salt. In a second bowl combine apple sauce, coconut oil, maple syrup, and vanilla extract. Add the wet ingredients to the dry and stir together. The dough should be thick and a bit sticky. Fold in chocolate chips and pistachios.