Preheat to 375°F (190°C).
In a pot of generously salted water, cook spaghetti until just al dente. Drain and set aside.
Ina large skillet over medium heat, brown the sausage until fully cooked, breaking it apart with a spoon. Stir in the Italian seasoning, garlic powder, salt, and pepper. Let the spices toast for a minute.
In a large bowl, toss the cooked spaghetti with the sausage mixture and tomato sauce until everything is evenly coated.
Grease a 9x9-inch baking dish (or round equivalent) and spread the spaghetti mixture into it. Sprinkle the mozzarella over the top and arrange the pepperoni slices.
Bake uncovered for 20–25 minutes, or until the cheese is bubbly and the edges are lightly crisped.
Let it rest for a few minutes, then sprinkle with fresh parsley. Slice like a pie and dig in!