PowerShell decoded other programs' output in the console's legacy code page, and Windows PowerShell read BOM-less files as ANSI, while opencode reads the shell's output as UTF-8. Captured values held the wrong characters even when echoing them looked right.
ShellSelect.args() ran zsh/bash with -l and explicitly sourced .zshrc/.bashrc,
loading user functions and aliases that can shadow builtins and return non-zero
exit codes, breaking && chains. Match the old tool behavior: plain non-login
non-interactive shell -c command with cwd passed via spawn options.