title: Use PowerShell to save a System.Windows.Interop.InteropBitmap to disk
body: <h3>Summary</h3>
  <p>I would like to use PowerShell to retrieve an image from the Windows clipboard, and save it to a file.
  When I copy an image to the clipboard, from a web browser for example, I am able to retrieve a <code>System.Windows.Interop.InteropBitmap</code> object.
  Once I have this object, I need to save the object to disk.</p>
  <p><strong>Question</strong>: How can I accomplish this?</p>
  <pre><code>Add-Type -AssemblyName PresentationCore
  $DataObject = [System.Windows.Clipboard]::GetDataObject()
  $DataObject | Get-Member
  </code></pre>