I have a search name that has the same name but in different projects, how do I tell the Get-PWDocumentsBySearch module to use a specific projects search.

I have a search name that has the same name but in different projects, how do I tell the Get-PWDocumentsBySearch module to use a specific projects search, I have tried adding the -FolderPath property, but didn’t seem to help, the only way that I could get the module to work was to make the search name unique in my datasource. Any ideas?

$searchname = 'Project PIDs'
$searchpath = ‘TESTING ONLY\SiteABC\H999992'
$Documents = Get-PWDocumentsBySearch -FolderPath $searchpath -SearchName $searchname

Kind regards Gavin Chapman
gavin.chapman@hatch.com