Modified the script to accept the access token

Modified the script to accept the access token also on run time so that
the user does not have to modify the script