Following Ludo comment (which requires EXOS 21.1+), you could also consider Extreme Management Center (XMC) to do the job, if you have it. Since 8.0.4 it supports Python scripting, so you could have your script on XMC and run it from there.
I see a potential to automate all of that with coming XMC 8.1.