Get inactive time after incident has been created

Aug 3, 2011 at 5:33 AM

How to check the following condition using the powershell cmdlet?

inactive time > CreatedDate - 30 minutes

 

and if inactive time > CreatedDate - 30 minutes, then will need to send notification to alert that the incident has been created for more than 30 minutes but no action has been taken for that incident