title: Pin program to start menu using PS in Windows 10
body: <p>I am trying to pin a program to the start menu in Windows 10</p>
  
  <pre><code>$shell = New-Object -ComObject "Shell.Application"
  $Folder = $shell.NameSpace("C:\Test")
  $exe = $Folder.ParseName("notepad.exe")
  #$exe.Verbs()
  $ItemVerbs = $exe.Verbs()
  
  Foreach($ItemVerb in $ItemVerbs)
  {
      If($ItemVerb.Name.Replace("&amp;","") -match "Pin to Start")
      {
         $ItemVerb.DoIt()
  
         Write-Host "Pin to the Start menu sucessfully.+ ""$ItermVerbTxt"" " -ForegroundColor Green
       }
  }
  </code></pre>
  
  <p>After executing this code, i see the success message which means it is finding the required verb.</p>
  
  <p>But i DONT see notepad.exe tile in Start Menu.</p>
  
  <p>Please help</p>