Using a DMG-based script is a straightforward process, but it requires precision to avoid database corruption.
Often, these scripts must be moved to the Applications folder or a specific "Scripts" directory within your user profile.
macOS security (Gatekeeper) may block the script. You may need to go to System Settings > Privacy & Security to "Allow" the application to run.