Josh --

In Javascript:
Code:
var T = new ActiveXObject("ACP.Telescope");
var Az = T.Azimuth;
var Alt = T.Altitude;
This assumes that ACP is running and connected to the real telescope. Your Javascript can be run on Windows via cscript scriptname. To make a loop that executes every 5 seconds:
Code:
var U = new ActiveXObject("ACP.Util");
var T = new ActiveXObject("ACP.Telescope");
while(true)
{
    var Az = T.Azimuth;
    var Alt = T.Altitude;
    U.WaitForMilliseconds(5000);
}
Is this what you're looking for?