function ldd($ExePath) { $Dumpbin = gi "C:\Program Files*\Microsoft Visual Studio\*\*\VC\Tools\MSVC\*\bin\HostX64\x64\dumpbin.exe" $Done = $false & $Dumpbin /dependents $ExePath | ? {$_.StartsWith(" ")} | % {$_.Substring(2)} | % {if ($Done) {} elseif ($_ -eq "Summary") {$Done = $true} else {$_}} | % {if ($_.StartsWith(" ")) {$_.Substring(2)}} }