Modified runAgent script to allow changing the server user and password