Issue with Snapshot action

Hi,

I have a powershell script that looks to see if outlook is running and if so sleeps for 100 s. Script runs fine in vstudio.
When I run a scheduled or manual snapshot I’m getting “exit status 1.”
I have the before snapshot action defined as “powershell -WindowStyle Hidden -File C:\ZZ_Policy\Close_OutLook_Sleep_2_Min.ps1” but the JSON rep has double \ ?

Not sure what’s causing this, any help would be appreciated.

"actions": {
    "beforeSnapshotRoot": {
        "path": "powershell",
        "args": [
            "-WindowStyle",
            "Hidden",
            "-file",
            "C:\\ZZ_Policy\\Close_OutLook_Sleep_2_Min.ps1"
        ],
        "timeout": 120,
        "mode": "essential"