You gain Effort Values by just being in battle, so you can start a battle with Tynamo then immediately switch to a more powerful Pokemon. If you fought a Litwick, both Pokemon would get 1 EV in Special Attack. You can also use Exp Share for the same effect.
The EV page has more details on how EVs are gained and some useful items you can use.