So I know that by using this command we can loop through all the MKV / MP4 files in the current folder. But I don't want to have to Google and find out what all possible file-types or extensions the genuine Video files could have like .webm, .mkv, .mp4, .mov
etc.
Get-ChildItem -Filter *.mkv | Foreach { $_ }
I want to loop through all those regardless of the file-types or extensions, as long their kind
is Video file, by that I mean if you remember Windows folder search there's a parameter says kind:video
that lists out all videos without getting into the file extension stuff.
How can I do that with Powershell script ??