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 osascript to turn it off. A
closure -h now with root user is enough
You can also turn off the drive via the Manage menu