See the Program Execution Functions reference.
You can use exec, passthru and system, or for more complex scenarios shell_exec or proc_open. For a simple CLI automation task exec will do just fine.
2
solved Running CLI commands in php [closed]