How to make spawners spawn in custom entities?

I want to make mob spawners that spawn custom entities like a zombie with a tag and different attributes, armor, and name or a skeleton with different stuff.
Continue to help post