Script works properly when launched from terminal, but fails after being
executed as a policy. Self Service tries to open, then crashes. App
version is 10.35.0, the OS it gets executed from is 10.14.6, fully
patched. The same script fails on a manual...