title: Using Powershell's bitwise operators
body: <p>I'm looking for example of how I would solve the scenario below:</p>
  
  <p>Imagine my printer has the following property for "Status"<br>
  0 -Offline<br>
  2 -Paper Tray Empty<br>
  4 -Toner Exhausted<br>
  8 -Paper Jam</p>
  
  <p>When I query status it returns a value of 12.  I can obviously see that this means the printer has the Toner Exhausted and a Paper Jam,  but how would I work this out with Powershell?</p>
  
  <p>Thanks</p>