You might be able to use/adapt this to run your commands in particular folders:
(It can be given a list of folders, but doesn't support wildcards. That'd be easy to add, though. I think it also only supports single-line commands, but you could just hardcode the commands you need in the script in place of the single-line configurable command, as a quick & easy method.)