Script to load a specific Xref scene on a specific frame

Hi all,

I'm looking for a script that will allow me to load a specific Xref scene on a certain frame.

For example:

I have an xref loaded in my scene, called scene_1.max, located at: C:\scenes\scene_1.max
This is fine for frame 1 of my animation.

In the same folder there are 99 other files, named scene_2.max through to scene_100.max.

I need the Xref scene_1.max to be replaced by scene_2.max on frame 2, by scene_3.max on frame 3 and so on.

Is there any way to script this? Does something already exist?

I'm very grateful for any ideas!