Some pokemon don't let you run away (special effects) so could always make it with one of those pokemon, or edit the pokemon you wish to fight's effects etc.
As for me, i'm getting back into scripting, using xse but haven't got alot of examples to work with, can somebody please make me a script...