If you have a standard user that needs permission to power off the workstation without being an Administrator.
$user = "YOURDOMAIN\Username" $right = "SeInteractiveLogonRight" $account = New-Object System.Security.Principal.NTAccount($user) ntrights.exe download windows 10