Task-sequences are where most of the power lie, in both MDT and ConfigMgr. They extremely flexible and versatile, allowing you to run scripts, commands, installs and obey conditions (using logic).
Ideally, if you use scripts stick to vbscript or PowerShell. BAT files belong in caves. Please avoid using them. They will make your life harder in the long run.