Add AAD account to Local Admin:

Run this to get the currently logged in user's username:

Get-WMIObject -class Win32_ComputerSystem | select username

Run this to add to Local Admin Group:

net localgroup administrators /add %User%
net localgroup administrators /delete %USER%

Examples