Process monitor script