setup loop for batch generation of proc scripts