passthru('echo hello world | sudo /usr/bin/php -f /usr/local/tonido/plugins/tonidoshell/rootserver.php');
but don't work. I solved my problem of shutdown by bash scripting using halt command instead of shutdown:
echo 'root password:' read PASS
echo $PASS | sudo -S halt
Now i need to know how to call it without use ./halt.sh. A single command like thalt will be great.