Is there a method to clone my macOS into fresh OS installer like Windows WIM?
The concept of a registry or binding to AD means that all Macs are in the sysprep state always. There’s really no analog to needing to prepare a clone since any backup will work to drop a restored image. You can use asr or Carbon Copy Cloner or Super Duper or Time machine or APFS snapshots to make clonable images of macos including the apps, accounts, settings.

The installESD is more like the windows ISO than something that contains user date or settings.

Apple has tons of documents now on the automated install scripts to reinstall the OS - and in the past NetBoot could be used to clone and image, but macOS is now designed to do a clean install and then restore user files / apps / settings rather than slip streaming a new OS. Both get you to the same end point, automated, but the tools needed are different since you just install macOS and then run a migration script to get the data in and upgraded to the new OS if the migration is also an upgrade.


https://support.apple.com/en-us/HT208020 Install for Catalina and newer macOS versions
https://support.apple.com/en-us/HT205054 NetBoot for older macOS versions