This question is asked by users in the TechNet forum. They just want to pin an item or more items to the Start menu.
You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery
I'v just tested your script and it works pretty good on Windows 8. Then I tried it on a Windows 8.1 Pro Preview Client and it doesn't seem to work any longer.
The Import as a module works and if I run the command "Set-OSCPin" I get the result "Pin ... to the start menu successfully". But i f I look at the Screen the tile doesnt appear on the start Screen.
Does anybody have a fix to make it work unter Windows 8.1?