@mitu Erm. Not exactly... I could maybe get the .bat file to run the .lnk

The problem is, the way the xbox app installs the games is by writing them to <driveletter>:WindowsApps - which I do not have access to.

f04dde76-8375-4323-9b14-2973058da5f4-image.png

There is no .exe per say to run, so all I could do would be to run the .lnk from a .bat, which I have tried, but launching the .lnk from the .bat still makes the script think its' finished and then ES returns.

However, I've managed to solve it.
The main thing is to get ES to not return until the game has gone full screen.

I borrowed the idea from https://steamcommunity.com/sharedfiles/filedetails/?id=687564452 and was able to figure out how to make a batch file to launch the game.
If anyone has gamepass, the only difference is on the link above it asks you to find the .exe that has been launched, whereas with this, you want the full target of the URL

My Example below is for Forza Horizon 4.

echo off cls cmd /r start "" "shell:appsFolder\Microsoft.SunriseBaseGame_randomlettershere!SunriseReleaseFinal" timeout /t 120

So instead of having "ForzaHorizon4" after the ! I needed to use "SunriseReleaseFinal"

The problem I had, was that ES was still returning too quickly.
If I used pause, then it wouldn't return at all without a keypress.

Thankfully Windows 10 has the timeout function.
So by setting a timeout for 120 seconds, this allowed the program to launch and go full screen before ES returned, and when it did, it did so behind the current full screen, allowing me to play the game, and then exit back in to ES.

Hopefully this will help someone else who is trying to do the same thing.
I'm going to edit the title to make it a bit more specific.