If a country wants to help another country through foreign investment, what can it do? How can it do the foreign investment?

The country loans money to a group or government of the other country. The country loaning the money expects to be paid back plus earning interest on it.