There is no easy way to Pin items to the Start Menu or on the Taskbar, it is by design to prevent programs filling up these locations ( http://technet.microsoft.com/en-us/magazine/2006.01.windowsconfidential.aspx ). However it is possible to script the pinned items.

 

When you rightclick on an object (shortcut / file) in explorer, you are presented with a context menu. These actions are known as “Shortcut Menu items” or “Verbs” in shell terms. These verbs can be enumerated and executed programmatically.

rclickmenu

 

Example to get all verbs on the Internet Explorer link:

 

Result from the example above:
verbresult

 

When scripting, you basically point out the object , and apply an action(verb):