A bit of C# code wrapped up with powershell which will allow you to assign accounts to a local security policy login as batch job rights. This code is no great shakes but it is a good example of how you might take some existing online code and modify to suit your needs in powershell. This function also compliments another scheduled task creation script I've released in the past.

 

PowerShell
Edit|Remove
    <# 
    .SYNOPSIS 
    When run administratively this will add a user to the local system's login as batch job rights security policy. 
    .DESCRIPTION 
    When run administratively this will add a user to the local system's login as batch job rights security policy. 
    .PARAMETER UserID 
    User ID to add to the local system's login as batch job rights security policy. 
    .LINK 
    http://www.the-little-things.net    
    .NOTES 
    Version: 
        1.0.0 - Initial release 
    Author: 
        Zachary Loeber 
    Respect:  
        Code mildy modified from  
        http://www.morgantechspace.com/2014/03/Set-Logon-as-batch-job-rights-to-User-by-Powershell-CSharp-CMD.html 
 
    .EXAMPLE 
    Add-UserToLoginAsBatch 'test.user' 
 
    Description 
    ----------- 
    Adds the local user test.user to the login as batch job rights on the local machine. 
    #>