Get net framework version from DLL library
$path = "C:\bin\Connector9.dll" [Reflection.Assembly]::ReflectionOnlyLoadFrom($path).CustomAttributes | Where-Object {$_.AttributeType.Name -eq "TargetFrameworkAttribute" } | Select-Object -ExpandProperty ConstructorArguments | Select-Object -ExpandProperty value got from: https://stackoverflow.com/questions/3460982/determine-net-framework-version-for-dll