Hello,
I would recommend to implement a small shell script in sbin directory of your extension and run it using pm_ApiCli::callSbin passing necessary permissions and path. It will be more flexible.
The other case if you want to make chmod under vhost owner privileges. In this case you use...