App Instance Monitoring Script