execute batch command