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

Hi,

 

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

or

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 : https://doc.sitecore.com/developers/93/platform-administration-and-architecture/en/manually-enable-the-xconnect-collection-search-service.html , https://doc.sitecore.com/developers/93/platform-administration-and-architecture/en/manually-enable-the-xconnect-collection-service.html etc...)

or

Any other way to combine the roles.

 

Please suggest.

 

Thanks & Regards,

Ravi