Problem Scenario: In Windows Server 2012 from a command prompt, you run a .bat file that launches a PowerShell script. You get an error that says "System Error 5" and "Access is Denied."
Solution: Open a new command prompt as an Administrator. Click the Windows button, search for "cmd." Right click the cmd prompt chose "Open as Administrator." Try running the .bat file again.
If that does not work, verify the relevant computers have correct time synchronization.