title: Value does not fall within expected range when applying property to Windows 10 Shortcut
body: <p>I'm attempting to modify the <code>TargetPath</code> of a shortcut on Windows using PowerShell, and when I go to apply the new path, I'm receiving a 'Value does not fall within the expected range' error. I'm assuming it has something to do with quotation marks, but I'm not sure how to fix it.</p>
  <pre><code>$shell = New-Object -COM WScript.Shell
  $AppPath = '&quot;app.exe&quot;'
  $AppFullPath = '&quot;C:\Program Files (x86)\app\app.exe&quot;'
  $TargetPath = &quot;C:\WINDOWS\system32\cmd.exe /c start $AppPath /high $AppFullPath&quot;
  $DesktopShortcut = $shell.CreateShortcut('C:\users\user\desktop\app.lnk')
  $DesktopShortcut.TargetPath = $TargetPath
  </code></pre>
  <p><code>$TargetPath</code> looks good, and I can manually set its output through the GUI and it works as expected, but not in PowerShell.</p>
  <p><code>C:\WINDOWS\system32\cmd.exe /c start &quot;app.exe&quot; /high &quot;C:\Program Files (x86)\app\app.exe&quot;</code></p>