Script for process management