title: Shortcut (.lnk) with Powershell - why does it not work
body: <p>(OK - I still get one error)</p>
  
  <p>Why in heavens is this happening? All I need to do is execute <a href="https://stackoverflow.com/questions/26876832/powershell-shortcut-creation-isnt-working">this</a> in one line.
  Like this:</p>
  
  <pre><code>PS C:\Users\Horn.Ruben&gt; $shell = New-Object -com "WScript.Shell"; $TestBackupAddin = $shell.CreateShortcut("C:\ClusterStorage\Volume2\test.lnk"); $TetsBackupAddin.TargetPath = "C:\ClusterStorage\Volume2\_VMBackups\20150113-0844\TestBackupAddin"; $TestBackupAddin.Save();
  </code></pre>
  
  <p>Now the only error that I get is this:</p>
  
  <pre><code>The property 'TargetPath' cannot be found on this object. Verify that the property exists and can be set.
  At line:1 char:123
  + $shell = New-Object -com "WScript.Shell"; $TestBackupAddin = $shell.CreateShortc ...
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
  + FullyQualifiedErrorId : PropertyNotFound
  </code></pre>
  
  <p>Do both directories need to exist before I can use this?</p>
  
  <p>PS: I need all of this to run in one line (with multiple shortcuts created later)</p>