Is it possible to write a startup script that I can push from my Active Directory to have my workstations join up with my ZCM system?

I have a large number of machines with the ZCM agent on them but are not currently managed. Ideally I would like to have a computer based script run when the machine boots up. Have it zac reg quietly with no user input.

I'm guessing I could simply make a batch file then put this in..

zac reg http://zenserver -u username -p password -q

Would something like that work?