added executeBatch; fetching output path from the script