#the first one doesn’t get windows explorer’s windows, but the second one does
1) Get-Process | Where-Object {$_.MainWindowTitle -ne “”} | Select-Object MainWindowTitle
2)$a = New-Object -com “Shell.Application”; $b = $a.windows() | select-object LocationName; $b