Thanks for the info. Here in the forums we faced the same issue a while back.
There is a wrapper that already applies what you recommend and also a higher PHP memory limit value.
At the time of writing this, the password reset example in the wiki uses this wrapper.
occ user:resetpassword admin