title: Powershell loop through unknown array key value pairs
body: <p>How do i loop through an array of values into a format of Key, value pairs?</p>
  <pre><code>$a= Search-AzGraph -Query &quot;Resources | project tags&quot;
  
  $a.tags[0]
  
  Environment : Non-Production
  
  Application : Openshift
  
  AppOwner    : AzureOncall
  </code></pre>
  <p>End result should look like</p>
  <pre><code>Key                      Value
  
  Environment              Non-Production
  
  Application              openshift
  </code></pre>