title: Get the last 10 events in Eventlog(Application, Secuirty, System) in PowerShell
body: <p>I am trying to get the the last 10 events in the «EventLog» logs «Application», «Security» and «System» parallelly. I get an error with this message:</p>
  <blockquote>
  <p>Get-EventLog : Cannot convert 'System.Object[]' to the type 'System.String' required by parameter 'LogName'&quot;</p>
  </blockquote>
  <p>when running the script. The script works when running with only the logname &quot;Application&quot;.</p>
  <pre><code>Get-Eventlog -Newest 10 -LogName &quot;Application&quot;,&quot;Security&quot;,&quot;System&quot;
  </code></pre>