Match file "run"

Hello

Pls

This script is not work

Thank to rectify me

Arnold

cls

$files = @("run")
$liste = Get-ChildItem -Path 'C:\Users\admin\k*' -force -Recurse  | Where-Object { $files -contains $_.BaseName } |
Select-Object FullName

$result = Get-ChildItem -Path 'C:\Users\admin\k*' -force -Recurse –Directory -ErrorAction SilentlyContinue |

Sort-Object -Property Name -Descending |

# select Folder unique |

select -unique |
ForEach-Object {

$diff = $_.LastWriteTime - $_.CreationTime
[PsCustomObject]@{
Name = $_.Name
CreationTime = $_.CreationTime
LastWriteTime = $_.LastWriteTime
Solvets = $_.$liste

TimeDiff = '{0} Days {1} Hours {2} Minutes' -f $diff.Days, $diff.Hours, $diff.Minutes

}
$result | Format-Table -AutoSize

$result | Export-Csv -Path '.\EGDB\filter-run.txt' -NoTypeInformation