//run your php file via terminal
> php PATH/index.php
//to run any command just simply use BackTick
index.php file contain code like this
echo(`Your comman will goes here `);
//=====================
Note: do not use single quotes or double Quotes use backTick otherwise you command
simply printed on terminal without runing.