How to use JavaScript to send mouse drag events in a ArcRotateCamera

I want to remotely control the motion of the ArcRotateCamera。How to use JavaScript to send mouse drag events in a ArcRotateCamera

You can change how inputs affect a camera Customizing Camera Inputs | Babylon.js Documentation