This is the script
get-childitem D:\media\*.mkv -recurse | Select-Object -Property name, @{n='Resolution';expression={mediainfo $_.FullName --inform="Video;%Width%x%Height%"}}
and the output is
Name Resolution
---- ----------
Video File -Copy (2).mkv 1920x1080
Video File -Copy (3).mkv 1920x1080
Video File -Copy (4).mkv 1920x1080
Video File -Copy (5).mkv 1920x1080
Video File -Copy (6).mkv 1920x1080
Video File -Copy (7).mkv 1920x1080
Video File -Copy.mkv 1920x1080
Video File.mkv 1920x1080
but if file name character is big, the resolution column info get missing. name column info gets overlapping.
i read this page https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/format-table?view=powershell-7.2
but i am not sure how to implement the property width or auto size.