Probably just another rabbit hole... and have regularly used System.Management.Automation to run Powershell script code from WB's CLR. I guess just looking if in WB you could assign a file, a process, or something else to a PSObject and work with it without need for external PS code... [json attached, just rename from .txt to .json]
json = Dirscript():"assets.json"
If ! FileExist(json) Then Terminate(@TRUE,"File Does Not Exist",json)
ObjectClrOption ( 'useany', 'System.Management.Automation')
oM = ObjectClrNew('System.Management.Automation.PSObject',json)
Message("System.Management.Automation.PSObject",OM)
Members = oM.Members
Props = oM.Properties
Methods = oM.Methods
Base = oM.BaseObject
Message("BaseObject",Base)
Message("Members",Members.ToString())
Message("Properties",Props.ToString())
Message("Methods",Methods.ToString())
oM=0
Exit