This question already has an answer here:

How to run this plugin from PyQGIS??


marked as duplicate by Ian Turton Dec 4 '14 at 15:44

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.