Run simulation from cmd

The setx command just sets this environment variable needed for parallel computations with CalculiX. You could use the set command instead to set it temporarily.