When you post code, sample data, console output or error messages please format it as code using the preformatted text button ( </> ). Simply place your cursor on an empty line, click the button and paste your code.
When you crosspost the same question at the same time to different forums you should at least post links to the other forums along with your question to avoid people willing to help you making their work twice or more.
It’s recommended to filter as soon as possible in a pipeline. The less pipeline objects you have to process the faster the command will be. But the parameter -Filter is limitted in its capabilities. So you have to filter with a Where-Object later on. There you can filter for each individual property or any combination of properties you need.
Please always read the help for the cmdlets you’re about to use completely including the examples to learn how to use them. It is beyond the scope of a forum to teach you basics scripting with PowerShell.
You may do a big step back and start with learning the very basics of PowerShell first. This will save you from a lot of wasted time and frustrations. And it will enable you to understand the help you get in forums like this.
And by the way … a robocopy command line would actually do all you need.
The screenshot you shared does not show any file fitting the filter *2022*.xls. That’s why you don’t see any ouput when you add the filter. It is a difference if a file is *.xls or *.xlsx. If you want to catch both you may use *.xls*.
To make you code easier readable you should use line breaks after each pipe symbol.