In response to a ITNinja question I came up with this method to script this without having to change the script for every user/machine you want to do this on.

We have had situations where we have to give the current user admin rights then take it away later.

Create a online shell script for windows.
Choose the proper Deploy system settings
Choose under "Windows Run As" - Local System

wmic computersystem get username /format:list > C:\ProgramData\Dell\KACE\user\Cuser.txt

for /f "tokens=2 delims== skip=2" %%G in ('type C:\ProgramData\Dell\KACE\user\Cuser.txt') DO net localgroup administrators /add %%G

del C:\ProgramData\Dell\KACE\user\Cuser.txt /q