When you changed the battery you probably disturbed the memory settings in the computer. Try looking through the owner's manual. I believe there is a section on resetting the memory functions.
Here is an excerpt from an online manual I've got.
The moon roof may not operate automatically and the jam
protection function will not function correctly after you
reconnect, replace or recharge the battery. In any of these
cases, you should normalize the moon roof.
To normalize the moon roof, push and hold the switch on the
“TILT UP” side until the moon roof tilts all the way up and then
tilts down a little automatically
The power windows may not operate automatically and the jam
protection function will not function correctly after you
reconnect, replace or recharge the battery. At this time, the
indicator lights of the switches will flash. In any of these cases,
you should normalize the power windows.
To normalize the power windows:
1. Push down the power window switches of each door and
lower the windows halfway.
2. Pull up the switches until the windows close and hold the
switches for a second.
Make sure that the windows open and close automatically. If
the power windows cannot be operated properly, have it
checked by your Lexus dealer.
HTH
Pete