How to combine XP scaled (on premises) topology roles using Installation script / changing WDP packages



I need to setup the below Sitecore XP scaled (On prem) topology roles,


S.NO Combination Roles
1 CM only in one server
2 CDs are in one server
3 1 Processing in one server
4 1 Reporting in One server
5 Xconnect roles (Xconnect collection, Xconnect collection Search, Reference Data, Marketing Automation & Marketing Automation Reporting)


Please help to create a script to install the above combination


Is it required manual combination after install all the roles (Xconnect roles specified in the above table)  because I found few articles to described about to combine (e.g : , etc...)


Any other way to combine the roles.


Please suggest.


Thanks & Regards,