more generic sample script to run batch status setting