Batch script for trinity