Is there any way of refreshing the management client using the Api instead of having to manually press the F5 key?

Unfortunately, no, there isn’t.

I actually found a workaround using SendKeys {F5}