MacOsInstallerToDiskImg is a command line utility to transform the macOS installer you found on the app store in an Disk Image you can use to install a VM for example
Why do you think that https://github.com/FiloSottile/mkcert is a good alternative to MacOsInstallerToDiskImg