Line 2 in the script below generates -
\"Cannot convert value \"System.Object[]\" to type \"System.Xml.XmlDocument\". Error: \"\'→\', hexadecimal va
System.Management.Automation.ArgumentTransformationMetadataException