I require a PowerShell command or script which will check whether my console application is running as administrator or not. If it is not running as administrator, I will stop it and run again using the script.
If PowerShell command is not available, is there any other way to check this?
Thanks in advance.