shell script to automate BW runs