Add icon to Desktop shortcut

Is there a way using a shell script or AppleScript to add a custom icon to a desktop shortcut? I can create the shortcut in a script but I have to manually change the icon.

thx much

Add icon to Desktop shortcut
 
 
Q