I\'m working on a PS script that needs to be executed with admin rights. For that I have the following function:
function openWithPriv { if (!([Security.Princ