Convert audio file to m4a through ffmpeg + shell script

Hi KM community,

I was trying to do make a macro to batch convert multiple .wav file into m4a using ffmpeg but don't know why it didn't work.
I tried to run it in terminal and it execute perfectly.

Here is what I got in shell script
Screen Shot 2020-07-24 at 8.08.37 PM

In that case you probably need to provide the full path the ffmpeg in the shell script.
KM Shell Scripts are NOT aware of your Terminal path or environment.
See Execute a Shell Script action.