defaults write com.apple.finder QuitMenuItem -bool YESYou
You can get a Quit menu for the Finder by editing the com.apple.finder.plist, which we can do here using the defaults command:
defaults write com.apple.finder QuitMenuItem -bool YES
Now you can run a command to kill the Finder:
killall Finder
Then when it comes back to life you should see the new menu item.