Build the command line arguments and working directory to use when invoking a command.
If the command to run is in workdir.
See Implementation
Build the command line arguments and working directory to use when invoking a command.