ESP-PROG and OpenOCD Problem

I have been struggling with openOCD not finding my ESP-PROG as in:
https://community.platformio.org/t/openocd-no-device-found/42475
where my ESP-PROG device is not found (even though it is there with a device driver of winusb). I have tried a lot of things to solve this problem and am still stuck.

I have been making my way thru the *.cfg files in .platformio\packages\tool-openocd-esp32\share\openocd\scripts but cannot find the place where openOCD is called and how the device is specified to it.

Can anyone help me understand the scripts and mainly where/how openocd is called?