Preheat the oven to 375°F (190°C). Grease the muffin tin with cooking spray or use muffin liners.
In a large mixing bowl, combine the flour, baking powder, salt, and black pepper. Stir to combine.
In another bowl, whisk together the milk, shredded cheese, chopped green onions, and cooked bacon or sausage (if using).
Pour the wet ingredients into the dry ingredients and mix until just combined. Do not overmix.
Divide the batter evenly among the 4 muffin cups, filling each about halfway.
Carefully crack one egg into each muffin cup on top of the batter. Gently press down to ensure they are mostly covered by the batter.
Bake in the preheated oven for 25 minutes, or until the muffins are golden brown and the eggs are cooked to your desired doneness.
Remove from the oven and let cool for a few minutes before gently removing the muffins from the tin.