Apple Remote Desktop Shutdown
If you want to run sudo command with ARD select run command as User and written root.

Edit : It doesn't have to go through the osascript to turn it off. A shutdown -h now with root user is enough 

You can also shutdown the station via the Manage menu