I'm trying to execute npx command containing pipe in regex parameter:
npx depcruise --exclude 'node_modules"|"test' --output-type dot src
But I'm getting error:
'test' is not recognized as an internal or external command, operable program or batch file.
I tried all combinations described here https://octopus.com/blog/powershell-pipe-escaping but none works. Whats is the correct way to escape pipe in such command?