combined get_and_command, get_pipe_command, get_or_command into one. Started to build complete_command