Windows, JNI: move command line creation logic
Windows, JNI: move command line creation logic

Move and unite command line creation and working
directory-related logic just above Job object
creation.

The next PR will split NativeProcess::Create to a
static and non-static part. The static part will
contain the Job object and process creation logic,
the non-static part will contain the JNI-related
logic. The static part will later move to a
separate class (WaitableProcess), like the other
static methods (Terminate, WaitFor, GetExitCode).

Closes #8054.

PiperOrigin-RevId: 243767112

dslomov/bazel-windows,akira-baruah/bazel,davidzchen/bazel,ButterflyNetwork/bazel,dslomov/bazel,meteorcloudy/bazel,akira-baruah/bazel,werkt/bazel,meteorcloudy/bazel,ulfjack/bazel,davidzchen/bazel,safarmer/bazel,safarmer/bazel,akira-baruah/bazel,dslomov/bazel-windows,davidzchen/bazel,ButterflyNetwork/bazel,aehlig/bazel,bazelbuild/bazel,ulfjack/bazel,katre/bazel,davidzchen/bazel,cushon/bazel,bazelbuild/bazel,ButterflyNetwork/bazel,perezd/bazel,bazelbuild/bazel,werkt/bazel,aehlig/bazel,ulfjack/bazel,twitter-forks/bazel,dslomov/bazel,perezd/bazel,meteorcloudy/bazel,bazelbuild/bazel,werkt/bazel,bazelbuild/bazel,ulfjack/bazel,perezd/bazel,meteorcloudy/bazel,akira-baruah/bazel,akira-baruah/bazel,safarmer/bazel,safarmer/bazel,dslomov/bazel-windows,perezd/bazel,ulfjack/bazel,twitter-forks/bazel,akira-baruah/bazel,davidzchen/bazel,safarmer/bazel,meteorcloudy/bazel,dslomov/bazel,twitter-forks/bazel,dslomov/bazel-windows,perezd/bazel,werkt/bazel,twitter-forks/bazel,twitter-forks/bazel,dslomov/bazel-windows,dslomov/bazel,cushon/bazel,katre/bazel,katre/bazel,perezd/bazel,dslomov/bazel,aehlig/bazel,aehlig/bazel,ButterflyNetwork/bazel,ButterflyNetwork/bazel,katre/bazel,dslomov/bazel,ulfjack/bazel,cushon/bazel,katre/bazel,ButterflyNetwork/bazel,davidzchen/bazel,werkt/bazel,twitter-forks/bazel,safarmer/bazel,aehlig/bazel,cushon/bazel,meteorcloudy/bazel,katre/bazel,aehlig/bazel,dslomov/bazel-windows,werkt/bazel,perezd/bazel,ulfjack/bazel,meteorcloudy/bazel,cushon/bazel,cushon/bazel,dslomov/bazel,aehlig/bazel,bazelbuild/bazel,twitter-forks/bazel,davidzchen/bazel