I am trying to return a boolean for a specific file within a directory from within a script when I use the first command within the local directory it works and the function seeing a file returns True, and my statement launches.
get-childitem *agc.txt
Once I move back one directory the function no longer works.
get-childitem -path test -include agc.txt
The end result is to have networked paths.