Get a shell-compatible reference to an environment variable.
Environment variable name
$VAR
%VAR%
This is useful when constructing shell commands dynamically.
envRef("PATH")// Linux/macOS → "$PATH"// Windows → "%PATH%" Copy
envRef("PATH")// Linux/macOS → "$PATH"// Windows → "%PATH%"
Get a shell-compatible reference to an environment variable.