Just realized that I hadn't filled in the variables of %userdomain% and %userid% in the code. /sigh not enough coffee yet.

I updated that content, confirmed it worked as expected from command line, but same results from running the script, 3 app sessions are launched.

TS