Preheat oven to 400°F (200°C) and line a baking sheet with parchment paper.
Unfold puff pastry sheets on a lightly floured surface and cut into equal squares.
In a bowl, mix ham, spinach, shredded cheese, cream cheese, garlic powder, salt, and pepper until well combined.
Place a spoonful of filling in the center of each pastry square.
Fold pastry over the filling or bring corners together to seal. Press edges gently.
Arrange on baking sheet and brush tops with egg wash.
Bake for 18–22 minutes, or until puffed and golden brown.
Cool slightly before serving.