Yes you can do this with zmprov. It can take a batch file or you can just script that in a loop. Batch file should be a bit faster as the tool only needs to start-up once.
Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.