It's not especially strange - the shell environment in the Terminal depends on a bunch of your setting files (like .profile) that do not apply to a non-interactive shell that Keyboard Maestro spawns.
So the differences are many, generally related to environment variables.
Then something is really wrong with your KM variable ENV_PATH -- this sets the action's PATH environment variable and, by default, contains /user/bin:/bin:/user/sbin:/sbin.
awk should be installed at /usr/bin/awk so would be expected to not need an explicit path.
I simply didn't have that variable. At least since this problem appeared. Something went wrong as even ls command stopped working and I had to use /bin/ls
So now I have finally have a fully working macro which sets the correct FPS in the Nuendo project settings and imports the video and the corresponding audio track into the new project.