windows had a thing in the release before 95 that let you automate stuff where it made a file of all your mouse commands opening files etc and made it into a .bat file or .cmd file i forget which that was very useful so of course they killed it in 95 but i don’t remember what it was called
There have been a few such Windows utilities over the years (mostly 3rd party but I think you're right about something from MS in the early 90's). But that was back when you could almost predict where desktop dialog boxes and such would appear. Automating mouse movements and clicks has always been pretty much a crap-shoot.
Back then, I worked for an outfit that produced Windows software and installers, and we tried mightily to automate our test procedures. The best I can say about the mouse automation is "It worked some of the time".