title: I want to run a WinForm app from Shell Launcher, but it does not work correctly
body: <p>When I run the WinForm app from the Shell Launcher, the image and text files do not load; when I do not use the Shell Launcher, they load correctly. Why?</p>
  <p>OS : Windows10 Enterprise LTSC</p>
  <p>Following is the PowerShell script.</p>
  <pre><code>$ShellLauncherClass = [wmiclass]&quot;\\localhost\root\standardcimv2\embedded:WESL_UserSetting&quot;
  
  function Get-UsernameSID($AccountName) {
  
  $NTUserObject = New-Object System.Security.Principal.NTAccount($AccountName)
  
  $NTUserSID = $NTUserObject.Translate([System.Security.Principal.SecurityIdentifier])
  
  return $NTUserSID.Value
  
  }
  
  $test_SID = Get-UsernameSID(&quot;TestUser&quot;)
  
  $ShellLauncherClass.SetCustomShell($test_SID, &quot;C:\Test\Test.exe&quot;)
  </code></pre>