I am trying to export a list in object into CSV, but my output is:
Hd M.d.o. Montagem Eixo Traseiro,"System.Collections.ArrayList"
The object is:
Class Departamento
{
[String]$nome
[Object]$pessoas
}
So, the first is a string and the second is a ArrayList(Object). I want to know how to export my arrayList, that has the name of all persons of my department. Thanks.