UiPath App V error

Hi,

I am currently automating an application in an App V session. In order for UiPath Studio to interact with this application, it must be opened in the same App-V session, We are achieved by using the App-V “Command line hook Switch”
(How to launch processes inside the App-V 5.0 virtualized environment - Windows Client | Microsoft Learn)

This is working when creating the script and identifies all the elements. However, when we run the bot to test, it fails to recognise the running robot service and raises the error, Start Service. (the bot service are running and are being identified within the App V session)

When run outside the App V session, it works all fine.

Any suggestions on how to get this working.