Hello
This prints perfectly, but cannot export if I do export-csv (it doesn't input any information)
How can I export?
Thanks
The foreach statement doesn't place anything in the pipeline.You can rewrite that code to use the pipeline.
Thanks!!!
I thought foreach was required if we wanted to go through the list
Not really, if you place an array in the pipeline, the ext cmdlets will take those objects one-by-one.Kind of an implicit foreach.You can also use Foreach-Object, that does place objects in the pipeline