I often get myself creating this kind of complex solutions, and I have been wondering if it is good or bad (not on the reading aspect, but on the topic of eating too much resources from the server and/or causing locks/not removing allocated resource etc.):
Here is my example:
$lists = (Get-SPWebApplication $url | Get-SPSite -Limit All | ? {$_.URL -match $example} | Get-SPWeb -Limit All | % { $_.Lists }).Where({$_.TemplateFeatureId -eq "xxx-xxx-xxx" -and $_.Views.Count -ge 1})
What are your opinions?