cli util to generate batch from bash and bash from batch