Runs over batchfile script and creates json file