@Mountain Pond, Thanks for posting in Q&A.
From your description, I know you you're trying to uninstall Sophos by deploying an .exe program via Intune, but it's failing detection methods.
Based on my research, the error code means the application was not detected after installation completed successfully, you can check if there exist some related error message and then correct the detection rules in Intune to see whether the issue can be fixed. Or you can change another Detection rules about the application.
https://www.prajwaldesai.com/intune-win32-app-deployment-error-0x87d1041c/
Please try above information, if there is any update, feel free to let me know.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.