'How to capture admin permission in .qs

I ask the system to call the maintenancetool and it asks for admin permission, how to know if the user allowed it or not in a .qs?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source