Working for advanced user

Works with modification of the script for email address and password.
Unsure on how script calls onComplete. Also, I wish to change the way
the %a is reported to notify scripts by removing spaces. Ping @sealemar