シェル関数にするのも楽で良いよ。

% foo() {osascript -e 'tell app "Finder" to sleep'}

スリープさせるくらいならオーバヘッドも気にならないでしょ。