Preheat your oven to 400°F (200°C).
In a small bowl, mix the softened butter, chopped parsley, garlic powder, salt, and black pepper until well combined.
Tear off four sheets of aluminum foil, each large enough to wrap a single ear.
Place one ear of husked corn in the center of each foil sheet. Rub approximately 1 tablespoon of the herb butter mixture evenly over each ear.
Wrap the foil tightly around each ear, ensuring the ends are completely sealed to trap the steam.
Place the wrapped ears directly on the middle oven rack and bake for 25 to 30 minutes, turning once halfway through.
Carefully remove from the oven, unwrap the foil (watch for hot steam), and serve immediately.