Experts,
I need to establish an object handle in PowerShell to a UDT. I know how to do it in VBScript. Does anyone know the proper syntax in PS? If not C# would be helpful as well because I could try to figure it out from there.
For regular object handles I use the following in PS:
$oBOM = $oScript.NewObject("BM_BillHeader_svc", [ref]$oSS)
For UDTs I need to pass two things (VBS example: oSession.AsObject(oSession.GetObject("CM_UDTMaint_bus", "SO_UDT_XXX")). The .NewObjectMethod of the $oScript object seems to accept one string and a lot of variants as parameters (string,variant,variant,variant...). I played around with that, but couldn't figure it out.
Thanks for your help!
Best,
B.