in my powershell script some variables have complex types (such as ‘XmlElementList’ with children ‘XmlElement‘, but can also be other types).
I am also calling external scripts from my PS scripts (e.g. some python file, that returns some calculations). But when I give the above variable as my argument, the listed complex content is not passed. Do i need to transform it before?
Hard to answer this without seeing your code … but, have you tried passing the .OuterXML property to your Python script ? This would in theory pass the text based XML that you could parse with Python ?