Help with Texture changing with MaxScript



I have been looking at MaxScript to help me do things but i’m completely new to the Scripting side of Max.

I’ve been following bits online and experimenting with listener. But only get a very short way before I hit a wall.

What I am trying to do is automate max to open/ change the diffuse texture to a new one in the root folder/ render/ save and close.

Is this even possible and if so could someone direct me towards some help please?