@Tanoj Mahishkar
Thank you for posting in Microsoft Q&A forum.
Your file works for me:
Looks like mentioned in this post, you may also try to use echo command to push syntax into the file.
https://social.technet.microsoft.com/Forums/Azure/en-US/433796ce-c504-428d-a6e0-0ea1f023f986/mofcomp-error-for-configurationmof-error-unexpected-token-at-file-scope-0x8004400a?forum=ConfigMgrDeployment
If the response 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.