Try to login system by a local admin account(not your friend’s MS account) then open Windows Store, login Store by your friend’s Microsoft account, check app’s installation requirements.
You could remove the admin permission of the friend’s account on your won account.
-------------------------------------------------------------------------------------
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.