Hi @ron_co
I don't know the answer but here's the [document|35391|tech sheet] for the model, that may help to find out what the wires are used for if you don't know already.
Run the diagnostic tests and check what error codes show.
If any are present they should point to the component under test that isn't working properly. Once you know the component you can use the wiring chart to find the component and check what colour wires are used to connect to it and if they match the colours of the broken wire you may be able to fix it.
According to this [https://www.searspartsdirect.com/model/a7j81mpeg4-001198/whirlpool-wrs588fihz04-side-by-side-refrigerator-parts|supplier] there are 3 wiring harnesses available for the model, given that you say it is near the freezer door, perhaps the freezer door harness (part # W10605341) requires replacing.
As to how this is done I can't find out. Hopefully this is of some help to get it fixed.