You could also use re-execution with ShellExecute with the "runas" verb. Then use the IsAdmin function at the top of the script, with the section of code that needs to be with full admin rights. Here is a very simple example.
;Run Admin part. Put at top of script.
If IsAdmin() Then
MsgBox(0, "Is Admin", IsAdmin())
Exit
EndIf
MsgBox(0, "Is NOT Admin", IsAdmin())
;Run with UAC Elevation
If @Compiled Then
ShellExecute(@AutoItExe, '', '', 'runas')
Else
ShellExecute(@AutoItExe, '"' & @ScriptFullPath & '"', '', 'runas')
EndIf
Adam