Try a function like this:
function Test-DebugAssembly($path) {
$assembly = [Reflection.Assembly]::LoadFile("$path")
$attr = $assembly.GetCustomAttributes([Diagnostics.DebuggableAttribute], $false)
if (!$attr) {
$false
}
else {
$attr.IsJITTrackingEnabled
}
}