Finally got a plugin as an Executable and performed runAnalysis()!