Before getting started, populate the header, title and URLs in an XML file (I am saving this in a file called topNav.xml).
Sample format:
<Navigation>
<Group Title="Sites">
<Link>
<Name>Asia Pacific</Name>
<Url>http://asiapac</Url>
<Target />
</Link>
<Link>
<Name>Canada</Name>
<Url>http://canada</Url>
<Target />
</Link>
<Link>
<Name>Europe</Name>
<Url>http://eu</Url>
<Target />
</Link>
<Link>
<Name>Japan</Name>
<Url>http://japan</Url>
<Target />
</Link>
<Link>
<Name>Penang</Name>
<Url>http://penang</Url>
<Target />
</Link>
<Link>
<Name>United States</Name>
<Url>http://states</Url>
<Target />
</Link>
</Group>
</Navigation>
And here is the powerShell script to grab the values and populate the Global Navigation section.