Batch execution of shell commands