Preheat the oven to 375°F (190°C) and line a baking sheet with parchment paper.
In a large bowl, combine flour and salt. Cut in butter until the mixture resembles coarse crumbs.
Gradually add ice water and mix until dough forms. Wrap in plastic wrap and chill for 30 minutes.
Roll out the dough on a floured surface to about 1/8 inch thick. Cut into rectangles.
Place half of the rectangles on the prepared baking sheet.
Evenly distribute shredded cheese and crumbled bacon on each rectangle, leaving space around the edges.
Top with the remaining rectangles and seal the edges with a fork.
Brush the tops with the beaten egg and sprinkle with black pepper, garlic powder, and onion powder.
Bake for 18-20 minutes or until golden brown and crispy.
Let cool slightly before serving.