How to use JavaScript to dispatch PointerEvent in a ArcRotateCamera

I want to remotely control the motion of the ArcRotateCamera. I found that the ArcRotateCamera is controlled by PointerEvent. So, I want to send a PointerEvent to control the motion of the ArcRotateCamera, using JavaScript. How to write the code?

Hi, this question has been solved, thanks

would be great to precise how in order to help the rest of the community reading your posts ?