How to run a cmd command with System.cmd/3?

I think I don’t, but it works in the cmd when I type it in manually.

I got: 'which' is not recognized as an internal or external command, operable program or batch file.

I tried System.get_env() in iex, it outputted a list that did not include echo.

Update:

I’m on win10 and System.cmd() gives me the same error regardless of what I put into the first argument.