I wish to run the command:
mocha -i -g 'database|network|skip'
With the pipe being part of the arguments to mocha. However powershell thinks 'network' is a program that I am trying to pipe to:
network : The term 'network' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path
was included, verify that the path is correct and try again.
Some research mentioned the --% operator to stop Powershell parsing
STOP PARSING: --% The stop-parsing symbol (--%), introduced in Windows PowerShell 3.0, directs Windows PowerShell to refrain from interpreting input as Windows PowerShell commands or expressions.
however running:
mocha --% -i -g 'database|network|skip'
Still gives the same error. Which makes sense, since:
The stop-parsing symbol is effective only until the next newline or pipeline character.
How can I run a command with a pipe symbol in powershell?
Edit: Image attached for person who refuses to believe me even after issue has been replicated, and answered by two people:

5.1.14393.82mochacommand, which can (and likely) be the sourse of error.find... hmmmm. Perhaps we need to reverse the quotes?mocha -i -g '"database|network|skip"'