I know this is an old thread, but you are looking for this: Command line switch /appvpid: You can apply the /appvpid: switch to any command, which enables that command to run within a virtual process that you select by specifying its process ID (PID). Using this method launches the new executable in the same App-V environment as an executable that is already running.
Example: cmd.exe /appvpid:8108 https://learn.microsoft.com/en-us/microsoft-desktop-optimization-pack/app-v/appv-running-locally-installed-applications-inside-a-virtual-environment