HI @Sayantan Ganguly
According to your case description, I do understand how frustrated you are now.
As far as I know, if you use Powershell CSOM to obtain the content of CEWP (Content Editor Web PART) in the Sharepoint page, you can get HTML content containing OOB (OUT-OF-The-BOX) components。
The HTML of custom components is because these components are edited by the user and added to CEWP by themselves, and its structure and logo may vary from the project.
I think this should be a design. Power Shell should be able to perform operations on OOB components, but cannot obtain the content of custom components from PowerShell.
I think you can put forward your thoughts here :https://feedbackportal.microsoft.com/feedback/
Many features of our current products are designed and upgraded based on customers’ feedback. With requirements like this increase, the problem may well be released in the future. Thanks for your understanding.
feedback
https://feedbackportal.microsoft.com/feedback/
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.
Best Regards
Cheng Feng