no need to do that :)
just do
sudo ./retropie_packages.sh setup binaries
which calls the “binaries” function of the setup module.
it will show a dialog at the end though – maybe I can change that so it only does a dialog if run directly from the gui.