Run PHP script using drupal bootstarp on drupal site
This is usefull if you want to do some actions just one time.
The drush comman is php-script alias src
On drupal 8 with drush
Example :drush --uri=drupal.loc scr /modules/custom/mymodule/scripts/test-script.php