Add spaces between the words in the following text: RezaKhan,ascommanderoftheCossackBrigade,orderedthereigningshah,SultanAhmad,toeitherreorganizethegovernmentorabdicate.
Reza Khan, as commander of the Cossack Brigade, ordered the reigning shah, Sultan Ahmad, to either reorganize the government or abdicate.