Hi Al,
A good workaround is here:
Short Answer No
Pretty much what you already figured out. You can not copy games from one pc to another because game pass games have a restricted games.exe that can't be copied and the app lacks a back up and restore functionality. Never tried zipping it though
The only solution I have heard of is installing the games to an external drive or secondary drive then hooking that drive up to the second computer. Then launching the game from its game.exe and it will add itself back into the xbox app library list. Then you might be able to use the apps built in move files function to move it back to your friends internal drive. But I really don't know if this is a proper method or will cause any issues
https://www.reddit.com/r/XboxGamePass/comments/11qfsxl/transferring_game_pass_games_to_another_pc/
I hope you find this information useful. If you have any more questions, don't hesitate to reach out. Otherwise, please take a moment to accept the answer. Wishing you good luck!
Standard 3rd party link disclaimer:
There may be links to non-Microsoft websites that provide accurate and safe information. Watch out for ads on websites frequently classified as PUP (Potentially Unwanted Products). There is no need to buy paid products to fix your computers, as they sometimes do more harm than good.