Sentence:  What on earth was in Mae 's mind , that she wanted him up there spying on what the cops were <WSD>doing</WSD> ? 
Meaning of the word marked with <WSD> tags:  engage in