Error when using System.cmd

The function requires a binary (string with double quotes) and not a charlist (string with single quotes). That’s is the argument error that you’re getting. :os.cmd is the Erlang equivalent function.

Are you using Windows or a Unix-like OS?