Quote arguments passed to the shell using shell-quote-arguments and replace shell-command with call-process-shell-command as the output buffers never actually received any output anyway.
Get rid of incomplete indentation code.