How to get automator app name

Hello,

In script you can use $0 to get the app name.

How do I do that when I have my script running in Automator?
How can I get the app name?

Thanks

btw,

In case someone is interested. I know how to do this in applescript.

tell application "Finder"
	set myPath to path to me
	set myApp to name of file myPath as text
	return myApp
end tell

or

tell current application
	set myPath to path to current application
	set myApp to name of file myPath as text
	return myAp
end tell

if I do something like this then I got the wrong answer.

return=`/usr/bin/osascript << EOT
tell application "Finder"
set myPath to path to me
set myApp to name of file myPath as text
return myApp
end tell
EOT`
echo "App:" $return

But I need to know it in bash script