Automate the process of reinstalling my VPS

I am trying to automate the process of reinstalling my VPS. I would prefer doing this using PowerShell, but I’m not sure if OVH supports this.

!2018-06-29%2010_53_23-OVH%20-%20Cloud|192x313

Does anyone have a ready script I can use, that initiates the process of reinstalling my VPS, and then waits for the process to finish?

My target is to automatically re-install my VPS, and then run my scripts on the new machine, so everything is set up automatically.