If you want Tor, "torsocks" probably works. I am not sure if it conforms to or cares about environment variables such as "http_proxy" and "https_proxy", or through CLI: "--proxy-server", as some programs do.