It's very easy to do, actually. Use Thunder Wave or a move that can paralyze the opponent, and you're done. :D
Source: Experience
Hope I helped!