Try one of these options and let me know if it works for you.
1. Use an impersonateUser() statement before your executeShellCommand() to execute the shell command using a specified administrator account.
2. Or set up the credentials on the machines using Agent>Set Credentials and then use an executeShellCommand() statement and set it's RunAs parameter to 'Execute as user'.