Prepare homemade dough if using. Mix the dry ingredients, cut in cold butter, add ice water, divide into discs, and chill for at least 1 hour.
Cook the diced apples, brown sugar, butter, cinnamon, nutmeg, lemon juice, and salt over medium heat for 5–7 minutes.
Stir together cornstarch and water. Add to the apples and cook for 1–2 minutes until thickened. Remove from heat, add vanilla, and cool.
Preheat oven to 375°F. Roll out the pie dough to 1/8 inch thick and cut 3 1/2 to 4-inch circles. Fit into a standard 12-cup muffin tin.
Fill each pie shell with about 2 tablespoons of cooled apple filling. Add optional lattice strips or pastry decorations.
Mix together beaten egg and milk or water to create an egg wash. Using a mini brush or your finger, brush exposed pastry with egg wash and sprinkle with cinnamon sugar if desired.
Bake for 22–28 minutes until the crust is golden and the filling bubbles.
Cool in the muffin tin for 10–15 minutes before carefully removing.