you can do a recursive gci of all files of interest, pipe the name of each file to mediainfo with json output, use convertfrom-json function of powershell, and do whatever checks you want with the json parsed into a hash table… one powershell script to ever write, and you’re set for life