title: How to programmatically bring a laptop into Sleep mode
body: <p>What API or tools can I use to query the capabilities of the system and choose the most appropriate on for putting the PC to Sleep, Hibernate or shutdown mode?</p>
  
  <p>Thanks for any pointers.</p>