sudo shell script

I'm trying to find a way to run the command: sudo chown admin on every new file added to a folder/subfolder on a server. Does anyone know how to get this to work by embedding the password in the shell/applescript?
Here's what I'm doing:
Hazel monitors for changed items in a folder/subfolders and invokes an applescript(processes the file into a path), which runs the shellscript on the file.
Any help would be greatly appreciated.
Here's what I'm doing:
Hazel monitors for changed items in a folder/subfolders and invokes an applescript(processes the file into a path), which runs the shellscript on the file.
Any help would be greatly appreciated.