Powershell duplicate image scanner
Let me give you some advice:

First of all you should make your code much more rideable. I am struggling to actually read this code. You should name your variables meaningfully, so the code can be read like English.

Don't write multiple commands on a single line. It is easier to keep track of code when single command per line is used.

When writing PowerShell scripts don't use cmdlet aliases, use full names of cmdlets. Different people use different aliases, but all of them know full names of similes.