script to be sent in batch