Is it possible to do check-file-count.rb command for few directories?

I try to create a check which will check if we have a file in some directory and create error if we have it

It is easy to do for one directory :

“command”: "check-file-count.rb --dir neededDIR -name ‘pattern’ -c 0",

But is it possible do to this command for few directories ?