write out multiple bat files