It's a dbus call, therefore I believe you need run-standalone.sh in front of the line where you run the script?