Set folder ACL with Powershell

$acl = get-acl c:\shared
$newacl = new-object system.security.accesscontrol.filesystemaccessrule("DOMAIN\user","FullControl","Allow")
$acl.SetAccessRule($newacl)
$acl | set-acl c:\shared
get-acl c:\shared | fl