He returned to Bombay in 1840. In 1843, Erskine became the private secretary of Sir George Arthur, the governor of the Bombay Presidency. In 1847, Erskine became deputy secretary in the government's Persian department and a translator. Then he became secretary of the Bombay government's general department and its judicial department.