Dear all of you, I'm trying to convert an old Applescript that used different commands "do shell script... with administrator privilege" so that you can run packages and other similar commands in the MacOS system with high privileges.
With Applescript, the password was requested only once during the first command "... with administrator privilege" while trying a similar code in C# with the function NSApplescript and Xamain.Mac I do not find the way to allow the execution of other commands using the same credentials previously entered by the user.
I've read that normally for 5 minutes these should be valid, but in this case it's as if they were reset after the execution of the first command "do shell script... with administrator privilege".
Does anyone have an idea of how it is the right way to proceed or an alternative to use a similar procedure in this new program created with Xamarin.Mac?
Thank you very much to everyone who can help me in some way.