Hamilton, Gustavus, active 1686-1711, Brigadier