Migrate to Rocky script for completely offline servers

What’s the best way to go about modifying the migrate2rocky script to work in a completely offline environment? I’m trying to change it to migrate from CentOS 8 to Rocky 8.4. Any help would be appreciated. Thanks.