bin/smo/smo-deps.txt

cd C:\github\dbatools\bin\smo
$phase1 = @()
$leftover = @()
dir | %{
 
 $file = $_
 try
 {
 Add-Type -Path $_.FullName -ErrorAction Stop
 $phase1 += $_.FullName
 }
 catch { $leftover += $file.FullName }
}
 
$dep = @()
dir | %{
    try { Add-Type -Path $_.FullName -ErrorAction Stop }
    catch { $_.Exception.LoaderExceptions.FileName | %{ $dep += $_ }}
}
$dep | Select-Object -unique