About your question. It's possible to save Excel report file by using script you providing. You can change filename by tag and call this script by changing tag's value. You don't have return value about success or not success this operation.
The administrator has disabled public write access.