How to comment in existing host file

How to comment in existing host file through bigfix

See if any of the methods shared in Universal append to hosts file could be of help for you.