title: Getting powershell to email message queue size before purging the queue
body: <p>Is there away of getting powershell to email the number of messages in a queue prior to purging the queue ?</p>
  
  <p>I'm able to purge the queue and get it to count the messages, but an email would possibly help identify issues. if the queue was suddenly start ramping up.</p>
  
  <p>I suppose what i need to do is have a script that will count the messages and then if it is above a predefined limit it will send an email with the message count then run the purge on the queue</p>