Add batch function

can be run to multiple hosts
Merge pull request #2 from shijiang1130/patch-1

Add batch function