Heat the oven to 390°F and line a baking sheet with parchment. Cut the pastry into strips roughly 5/8–3/4 inch wide.
Grease metal cone molds. Starting from each tip, wrap a strip around the mold, overlapping slightly. Place seam-side down and brush with beaten egg.
Bake 15–20 minutes until golden. Cool briefly, then slide out the molds and cool the shells completely.
Whisk the yolks, sugar, cornstarch and flour with a little cold milk. Heat the rest of the milk and whisk it gradually into the yolks. Return to the saucepan and cook, stirring, until thick and gently bubbling.
Stir in vanilla. Cool the custard, then beat in softened butter until smooth.
Pipe the cream into each horn from both ends. Dust with powdered sugar and keep filled horns refrigerated.