this will only work if the user is a local admin

$admincmd="cmd /c NET LOCALGROUP administrators domain\group /add 2>nul"
shell "$admincmd"

If they are not local admins, you will need to use something like SU

_________________________
How to ask questions the smart way <-----------> Before you ask