Please review How to solve Exec binding problems.
Also, realize that because you are not giving executeCommandLine a timeout argument, the script is executing silently in the background. As recommended in the thread I just linked to, add a timeout and log what the call to executeCommandLine returns.
If I had to guess, I’d say that OH doesn’t have permission to write to /dev/ttyAMC0.