Format argument for a shell CLI command.
This includes automatically embedding string in double quotes if necessary, including any necessary escaping.
Note, this function does not cover all the edge cases for shell processing, so avoid use in production code.