Equivalent in Bash sh / Lua script

I was wondering how to replicate this applescript in Bash shell :

tell app "Finder" to reveal alias foo

If you know the equivalent in Lua script, even better.