Can you send a single command to the camera with a Wi-Fi API to have it go into plug-in mode?
Can you use a Raspberry Pi Zero?
There are more examples using the USB API with a Raspberry Pi. There are examples using Arduino on this forum using the WiFi API.
If you’re committed to Arduino, the THETA USB API is PTP. Try and use an Arduino PTP library. It may work.