Looking for a file and need the location? This oneliner will return the full path of the first result found
Get-ChildItem -path c:\ -Recurse -Filter "filename" -ErrorAction SilentlyContinue | Select-Object -Property Directory -First 1 | ForEach-Object {$_.Directory.FullName}