I take copy/paste of that command from your reply to notepad and add only that filter -Name *Name* before use it in terminal and copy to my reply.
That is the other difference copy/paste with mouse right click to power shell works if I use Terminal, but not if I open Power Shell directly without Terminal.
Even more crazy. 🤣🤣
Try pasting from your post directly to Power Shell without using the terminal and you will see the problem.
Looks like Terminal is translating to normal dash instead of en dash or em dash.
Anyway, mystery solved. 😉😎
I have to go to bed. Good night.