Can I extend Alfred with a command-line program to clean up the desktop? I'd like to have something that I can run from Alfred or the command-line that can run "clean up desktop".

What is a command-line program or apple script that will cleanup the desktop?

Preferably there would be an option to do it by name or some other system (i.e., at least all the options that are available when right clicking the desktop).
You have to use clean up window of desktop instead of clean up the desktop.

tell application "Finder" to clean up window of desktop by name