,
I'm using XSE also, but I do it in another way i guess. I write the script down with Notepad, save it as .rbc and compile it into the game, using BufRite and PokeScript together.
The person-ID is 1202, the person number is 2 (you can see the person number in the script:
"applymovement...