Spawn a villager with a certain effect

//ads -- adsterra.com -- native banner
?>
After seeing this post about making zombies run in a particular direction/fashion, someone suggested spawning in a Villager to run from the Zombies.
This made me think, can you summon an entity with a certain effect(s) active on spawn? For example, a Villager with Invisibility or a Zombie with Haste?
Pictures about "Spawn a villager with a certain effect"



How do you summon a villager with a certain profession?
To get farmers, do /summon villager ~ ~ ~ {Profession:0,Career:1} . To get fishermen, do /summon villager ~ ~ ~ {Profession:0,Career:2} . To get shepherds, do /summon villager ~ ~ ~ {Profession:0,Career:3} . To get fletchers, do /summon villager ~ ~ ~ {Profession:0,Career:4} .Can you spawn villagers with specific trades?
This Villager Trade Generator creates the Minecraft Java Edition (PC/Mac) 1.19 command you can use to summon a villager with a profession, name and as many custom trades as you want.How to Spawn Villagers with CUSTOM TRADES!
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Aidan Roof, Stephane Hurbe, rovenimages.com, Enric Cruz López