He commanded one of the two divisions of the army when it left Edinburgh under the command of the Duke of Cumberland.
The sentence describes a military leader who commanded one of two divisions during their departure from Edinburgh under the authority of the Duke of Cumberland.