def get_token(token_cmd):
    if (token_cmd[0] == "`" and token_cmd[-1] == "`") or token_cmd[0] == "$":
        token_cmd = (
            check_output(token_cmd.strip("$`").strip(), shell=True)
            .decode("utf-8")
            .rstrip("\n")
        )

    return token_cmd
