For non-wikipedias where the wikipedia exists, this can be done.
/usr/bin/mysql < insert into <FAMILY> (prefix, lang, loclang, method) select prefix,lang,loclang,method from wikipedias where prefix=<PREFIX>; /usr/lib/wikistats/update.php wX prefix <PREFIX>
There's only 1 item there that changes for each. You could add a bash script that takes family & prefix to automate. Maybe even add it to Maint-Bot then as the family is easy to pull.
For wikipedias or where there is not an existing Wikipedia:
insert into <FAMILY> (prefix, lang, loclang, method) values (<PREFIX>, <LANG>, <LOCLANG>, 8); /usr/lib/wikistats/update.php wX prefix <PREFIX>
This can be mostly taken from the ticket except LOCLANG
For specials, the table is completely different but they are more rare.