Preheat oven to 350°F (175°C). Grease a 9-inch pie pan or similar baking dish.
In a mixing bowl, whisk together flour, baking powder, salt, and sugar.
Add milk, eggs, and vanilla extract. Whisk until smooth and well combined.
Arrange pear slices evenly in the prepared pie pan.
Pour the custard mixture over the pears, ensuring they are evenly coated.
Bake for 45-50 minutes, or until the custard is set and the top is lightly golden.
Cool slightly before serving. Dust with powdered sugar if desired.