$names = 'rc.exe','cvtres.exe','link.exe'
foreach ($n in $names) {
Write-Host "---- $n ----"
$paths = @()
try { $paths = & where.exe $n } catch { }
if (-not $paths) { Write-Host "Not found"; continue }
foreach ($p in $paths) {
Write-Host $p
$v = (Get-Item $p).VersionInfo
Write-Host " FileVersion: $($v.FileVersion)"
Write-Host " ProductVersion: $($v.ProductVersion)"
Write-Host " CompanyName: $($v.CompanyName)"
}
}