Preheat the oven to 220 degrees Celsius. Lightly grease a 23 x 33 centimeter baking dish with a little oil or cooking spray.
Place the poblano peppers on a baking sheet, rub them with the olive oil, and roast for 15 minutes, turning once, until the skins are blistered and charred in spots.
Transfer the hot poblanos to a bowl and cover tightly with a plate or clean kitchen towel for 10 minutes so the skins loosen.
Lower the oven temperature to 190 degrees Celsius. Peel the skins from the poblanos, remove the stems and seeds, and slice the peppers into thin strips.
Cut 4 of the corn tortillas in half. Arrange a layer of 4 whole tortillas over the bottom of the baking dish, tearing and fitting the tortilla halves as needed to cover gaps.
Scatter one-third of the sliced poblanos, one-third of the diced onion, one-third of the cilantro, and one-third of the shredded cheese over the tortillas.
Repeat the layering two more times with the remaining tortillas, poblanos, onion, cilantro, and cheese, finishing with cheese on top.
In a large bowl, whisk together the eggs, whole milk, kosher salt, black pepper, ground cumin, and garlic powder until fully combined.
Pour the egg mixture evenly over the layered casserole. Press down gently with the back of a spoon so the tortillas absorb some of the custard. Let the dish stand for 10 minutes before baking.
Bake the casserole at 190 degrees Celsius for 30 minutes, or until the center is set and the top is lightly golden. Rest for 10 minutes before slicing and serving.
Serve warm with salsa and sliced avocado on the side or spooned over each portion.