Younger readers may mis-understand this use of the word, which seems to have been moved over to meaning only some nefarious activity.
In this context :
scheme means program(me)