I am totally aware of Time Machine and the process of backing up the complete Mac data on an external Hard drive.

I just need to generate a small script/backup of all the settings of my MacBook pro.

I just need the ability to run that script in a new machine, and that can download and install all the apps & configure things like the menu bar, dock settings, etc.

This is something like `composer` does for a PHP project.

Is there a way to that in MacBook Pro?