Problems scripting a button to save a file

I am having issues saving a file via pressing a button. My script is below. I am not receiving an error in my logs, but I don’t see the file in the path where it’s supposed to be.

In the path, try adding another backslash anytime you have a backslash present.

I just tried this, but I still don’t see the file.

Does the account being used by the Ignition service have permission to write to this directory?

I’m not sure, how would I check this?

The path has to be accessible to the Gateway(Server)

Setting Keys: "path", "fileName" and "format". 
Note: Since the script is sent to the gateway for execution, path and fileName must be relative to the gateway.