Jerry -- What are you looking to do? If you want to see what's happening with the dome/roof controller, use the PIPE Connection Watcher, a tool that is part of the ASCOM Platform. It can be "inserted" between (e.g.) ACP and the roof controller. It will log all of the call/parameter/response traffic between the client (ACP or any ASCOM compatible program) and the driver/controller.

If you do want to write scripts JavaScript is natively supported in Windows, and the ASCOM objects are directly addressable in native syntax. You can use Python with the PyWin/PyCOM package also.

Are you looking for a software answer to something that "just started to happen"? Unless you changed the software or some settings that might be related, its more likely that something failed.