Add roles to many dbs and assign as well

Hi, I’ve been asked to add and assign a role to over 200 db’s, across 6 servers. Whilst I can add the role on mass via manage acl, it seems the only way to assign is to go into each db in turn and tick the role. This will take me a ong time. Anyone got any ideas how I can do this more efficiently?