title: Accessing unknown levels of PSCustomObject nested object
body: <p>I'm getting a response from an API with unknown nested levels of properties, this is an example:</p>
  <pre><code>affects_rating          : True
  assets                  : {@{asset=xxxxxxxxxxxxx; identifier=; category=low; importance=0.0; is_ip=True}}
  details                 : @{check_pass=; diligence_annotations=; geo_ip_location=NL; grade=GOOD; remediations=System.Object[]; vulnerabilities=System.Object[]; dest_port=443; rollup_end_date=2021-06-06; 
                            rollup_start_date=2020-03-18}
  evidence_key            : xxxxxxxxx:xxxx
  first_seen              : 2020-03-18
  last_seen               : 2021-06-06
  related_findings        : {}
  risk_category           : Diligence
  risk_vector             : open_ports
  risk_vector_label       : Open Ports
  rolledup_observation_id : xxxx-xxxx==
  severity                : 1.0
  severity_category       : minor
  tags                    : {}
  asset_overrides         : {}
  duration                : 
  comments                : 
  remaining_decay         : 59
  
  temporary_id            : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  affects_rating          : True
  assets                  : {@{asset=xxxx.xxxx.com; identifier=; category=low; importance=0.0002340946; is_ip=False}, @{asset=xxxx.xxxx.com; identifier=; category=critical; importance=0.45131093; is_ip=False},
  </code></pre>
  <p>So far I've tried to access each value with a table, but sometimes the records contains an object, which outputs <code>System.Object[]</code> to the CSV file.</p>
  <pre><code>foreach ($item in $findings.results) { 
      $tabledata = [ordered]@{
          temporary_id     = $item.temporary_id
          affects_rating   = $item.affects_rating
          asset            = $item.assets.asset
          asset_identifier = $item.assets.identifier
          asset_category   = $item.assets.category
          asset_importance = $item.assets.importance
          asset_is_ip      = $item.assets.is_ip
          modal_data       = $item.details.diligence_annotations.modal_data
          modal_tags       = $item.details.diligence_annotations.modal_tags
          server           = $item.details.diligence_annotations.server
      }
  }
  </code></pre>
  <p>The type of the variable <code>$findings</code> is a <code>PSCustomObject</code></p>
  <pre><code>PS C:\Users\bryanar&gt; $findings.GetType()
  
  IsPublic IsSerial Name                                     BaseType                                                                                                                                                   
  -------- -------- ----                                     --------                                                                                                                                                   
  True     False    PSCustomObject                           System.Object 
  </code></pre>
  <p>Any recommendations?</p>