When backing up different organisations, different PATs might be needed. It would be useful to be able to supply the PAT as an argument to the function with a default value of NULL leading to the current behaviour.
I have though no idea how much re-writing would be necessary for this...