I'm working on a Drupal 8 site (D8), and part of the requirement is giving the client a page thatwhere they can click a button to do a particular task. I am able to do this using a Drush command using CLI. Butfrom the command line, but I want to make this asdo it from a codemodule.
I had seen code using either php_exec() andor invoke_processdrush_invoke_process() function. ButHow can anyone explain how toI use this function?