title: What is the App-V 5.0 alternative to sfttray \launch without the \exe parameter in PowerShell?
body: <p>I'm trying to transition a set of Powershell scripts that launches App-V applications, after upgrading the App-V server from version <code>4.x</code> to <code>5.x</code>. Previously, I used the following command to do so:</p>
  
  <pre><code>sfttray.exe /launch $appName
  </code></pre>
  
  <p>The <a href="https://docs.microsoft.com/en-us/microsoft-desktop-optimization-pack/appv-v4/sfttray-command-reference" rel="nofollow noreferrer"><code>sfttray</code> command</a> introduced an optional <code>/exe</code> switch when running the <code>/launch</code> command:</p>
  
  <pre><code>Used with /LAUNCH to specify that an executable program is to be started in 
  the virtual environment when a virtual application is started in place of 
  the target file specified in the OSD.
  </code></pre>
  
  <p>I've read that App-V <code>5.x</code> has done away with the <code>sfttray.exe</code>, and my alternative is to use the <a href="https://docs.microsoft.com/en-us/powershell/module/appvclient/start-appvvirtualprocess?view=win10-ps" rel="nofollow noreferrer">Start-AppvVirtualProcess</a> cmdlet. It seems that <code>Start-AppvVirtualProcess</code> requires two parameters: <code>AppvClientObject</code> and <code>FilePath</code>. Every example I've seen so far has been of the following format:</p>
  
  <pre><code>Start-AppvVirtualProcess -FilePath "C:\Calc.exe" -AppvClientObject $appVObj
  </code></pre>
  
  <p>This launches <code>Calc.exe</code> within the passed in App-V Object, and seems to be the App-V <code>5.x</code> equivalent of:</p>
  
  <pre><code>sfttray.exe /launch $appVObj.Name /exe Calc.exe
  </code></pre>
  
  <p>But what if I don't want to launch an alternate program? How do I get the file path to the target application in the <code>.appv</code> package?</p>