SyntaxFix
Write A Post
Hire A Developer
Questions
If relative paths are what you want you can just use the -Name flag.
-Name
Get-ChildItem "C:\windows\System32" -Recurse -Filter *.txt -Name