For the most part, he doesn't. By that I mean, Shakespeare gives us a tale of political power, magical power, and vengeance but a lot of the play doesn't have much to do with good or evil. Instead, it has to do with rightful places (Prospero is deposed), rights to power (Caliban claims the island should be his), and duty.
To the extent that good and evil are shown in the play, they are shown to be changeable, and to depend on character and situation. Prospero's power is extreme, and he could do much evil with it, but he sets it aside at the end, for example.
im not sure but shakespeare does this though prosperos magic.
good -when prospero breaks sycorax spell that was used on areil.
this is my only example so far sorry.
bad- lucking caliban in a room not leting him go free on the island.
creating the tempest.
and finally using areil .