I personally think it is a great idea and I would make this available through your addons GUI, same place where we can edit, update, disable, uninstall,....
The action could be to always download latest version of your debug script, run it, create an archive, upload and delete after (or keep it...