Heat the oven to 375°F. Bring a large pot of salted water to a boil, add the shells, and cook for 9 minutes, until just shy of al dente. Drain, rinse under cool water, and spread the shells on a baking sheet so they do not stick.
While the water heats, stir together the ricotta, spinach, egg, 1/4 cup of the Parmesan, garlic powder, Italian seasoning, salt, and pepper in a bowl until evenly combined.
Spread 1 cup of the marinara in the bottom of a 9-by-13-inch baking dish. Spoon about 2 tablespoons of the ricotta mixture into each shell and nestle the filled shells into the dish, open side up.
Spoon the remaining marinara over the shells, then sprinkle with the mozzarella and the remaining 1/4 cup Parmesan.
Cover the dish with foil and bake for 20 minutes. Uncover and bake for 8 to 10 minutes more, until the sauce bubbles and the cheese is lightly golden.
Rest for 5 minutes, scatter with basil if using, and serve.