
Replace string:tokens/2 with a custom command-line tokenizer that supports single and double-quoted arguments (with embedded whitespace) and expansion of environment variables using either the Unix ($VAR; ${VAR}) or Windows (%VAR%) formats. This tokenizer is only used when the command line is parsed as a single string.