Fix command execution on Windows

Fixed an issue where npm-installed command-line tools (like Codex) couldn't be found on Windows. The fix enables shell mode on Windows only, allowing the system to properly resolve .cmd shims that npm uses for global tool installation.