title: How can I get the output from PowerShell's Format-List as a string?
body: <p>I want to write the output from a Format-List command to the event log so I need it as a string.</p>
  
  <p>Is there a generic way to do this that doesn't depend on knowing what is being formatted?</p>