Preheat the oven to 350 degrees. Line 2 cookie sheets with parchment paper and set aside.

In the bowl of a food processor, place the flour, sugar, salt and baking powder and pulse to combine. Stop the food processor, add the cold margarine in chunks, and process the mixture until it resembles coarse cornmeal. Stop the processor again and add the eggs, vanilla and 1 ½ tablespoons of the soy milk, then process the mixture until it comes together and forms one large ball of dough, adding ½ teaspoon more soy milk at a time if more moisture is needed. Remove dough and knead briefly to bring it together. Divide the dough in half, wrap each half in plastic wrap and refrigerate for 10 minutes.

Working with one half of dough at a time, roll out the dough between 2 large pieces of parchment paper, wax paper or plastic wrap to a thickness of about ¼ inch. Using a lightly floured 3-inch round cutter, cut as many circles as possible from the dough, place a scant teaspoon of filling in the center of each circle (do not overfill), then bring the edges of the circle together towards the center to form a triangle, pinching the corners of the triangle together. If the dough becomes too soft to work with easily during this process, place it in the freezer for a few minutes to firm up and then continue. Transfer assembled hamantaschen to the prepared baking sheets, placing about 2 inches apart, and brush exposed dough with egg mixture. Repeat with remaining dough. For Apple Pie Hamantaschen, sprinkle liberally with cinnamon sugar over dough and filling before baking.

Bake 18 to 20 minutes or until light golden brown. Allow to cool on sheets for about 5 minutes, then transfer to a rack and cool completely. For Pecan Pie Hamantaschen, drizzle with melted chocolate before serving.

In a non-reactive saucepan, toss the apple chunks with the sugar and lemon juice. Cover the saucepan and cook the apples over medium heat until softened, stirring occasionally, about 10 minutes. Remove the pan from heat and stir in the remaining ingredients. The mixture should resemble a thick and chunky applesauce. Taste the filling and add another tablespoon of sugar if needed. Allow the filling to cool completely before using. Refrigerate if not using immediately.