Do you run aMule with the same user that you execute the script in the terminal?
I tested the core command for completed downloads with a script located in my home directory. It worked.
I would suggest to copy the script to a different location. Scripts shouldn't be stored in the "/bin" directory.
Perhaps try to store it in the home folder and run aMule with the user who's home folder it is located in.