The shell-over-FTP idea won't work.

But the script might work. It can be run directly from within FTP:

SITE EXEC scriptname

Haven't tried it, though. I suspect the player binary might get in the way (again! -- gotta fix that).

Cheers