Adventures in Powershell. These posts have been created as a record of the successful powershell commands I have used.
Insert this at the top of a script to stop error information appearing in the output that you are trying to read!
$ErrorActionPreference= 'silentlycontinue'