Fix escaping of the Windows commands

Seems that `shellescape` doesn't work here, so use `inspect` to produce
quoting.