Get-ChildItem *.a | % { if(-not (Test-Path -Path "$($_.Directory)\$($_.BaseName).b" -PathType leaf)) { Write-Host $_.Name } }
Get-ChildItem *.a | % { if(-not (Test-Path -Path "$($_.Directory)\$($_.BaseName).b" -PathType leaf)) { Write-Host $_.Name } }