title: PowerShell's Write-Debug won't output arrays, but Write-Output does. Is this on purpose?
body: <p>Shown below, an array works fine as input for Write-Output but not for Write-Debug (I expected them to be more similar than that).</p>
  
  <pre><code>PS C:\&gt; [string[]]$test = @("test1", "test2", "test3")
  PS C:\&gt; Write-Output $test
  test1
  test2
  test3
  PS C:\&gt; $DebugPreference = "Inquire"
  PS C:\&gt; Write-Debug $test
  Write-Debug : Cannot convert 'System.String[]' to the type 'System.String' required by parameter 'Message'. Specified method is not supported.
  At line:1 char:12
  + Write-Debug &lt;&lt;&lt;&lt;  $test
      + CategoryInfo          : InvalidArgument: (:) [Write-Debug], ParameterBindingException
      + FullyQualifiedErrorId : CannotConvertArgument,Microsoft.PowerShell.Commands.WriteDebugCommand
  
  PS C:\&gt;
  </code></pre>
  
  <p>I'm thinking this is just an unfortunate design, but hoping for a sensible explanation.  Am I using Write-Debug correctly?  If so, anyone have a favorite simple workaround?</p>