Equilibrium and stability control of heliotron/torsatron with driven current