Test if PowerShell variable is array:
if ($a -is [system:array]) { do something }
OR is not:
if ($a -isnot [system:array]) { do something }
Disclaimer
All content provided on this blog is for information purposes only. Windows Management Experts, Inc makes no representation as to accuracy or completeness of any information on this site. Windows Management Experts, Inc will not be liable for any errors or omission in this information nor for the availability of this information. It is highly recommended that you consult one of our technical consultants, should you need any further assistance.