Step 1: Create a small business. For this, he should pick a product or service that can be that of a significant business, e.g., the one he would like to manage as as technical CEO and where initially he can develop the product or service mostly just by programming on his own. Then from that product or service, get revenue.
Step 2: Be the CEO of the business, still just a one person startup except with as much outsourced as possible -- e.g., rented offices, bookkeeping, accounting, taxes, benefits, business insurance, legal, colocation or cloud for the server farm, consultants for specialized technical topics he is not already good at, etc.
Then as the first hire, hire an office manager later to grow to one of an administrative assistant, chief of staff, head of HR, or COO. Hire the product development staff and then the CIO to manage that staff. Hire a CFO, CMO, etc.
Then for this business, be the leader he wished he'd been in the past.
His abilities as a programmer let him do well in Step 1 and also be good at the technical parts of management in Step 2.