Get-SPSite mysite | Select -ExpandProperty AllWebs | Select -ExpandProperty Lists | Select -ExpandProperty Items | Out-File outputpm.txt
I have this code, which produces the items, one of the items is xml which can be expanded. There is a part in the xml which I want to query, so it filters down the list I already have.