Use the below snippet code to check the version of the DLLs.
$filepath=’D:\DLLS\’
$files=Get-ChildItem -Path $filepath -Recurse -filter *.dll
foreach($file in $files)
{
$version = [System.Reflection.Assembly]::ReflectionOnlyLoadFrom($file.FullName).ImageRuntimeVersion;
echo "$($file) is using Framework: $version"
}
Regards,
Chaitanya