Error when I ran the code.

ERROR : IDispatch pointers not allowed in expressions!
Script: C:\SCRIPTS\GetDLLValues.kix
Line : 119

LINE:119
$parentNode = $parentNode.AppendChild($sectionNode)

Also all output is on screen even when call is set like this.

Dim $DLLCheck
$DLLCheck = WriteRegisteredDlls('c:\temp\' + @WKSTA + '.xml')