I have a problem with making custom task for Azure Devops: I need to run a PowerShell script with admin permissions when task.json calls PowerShell
"execution": {
"PowerShell3": {
"target": "$(currentDirectory)\\X.ps1",
"workingDirectory": "$(currentDirectory)"
}
}
In the above code, how can I define that PowerShell can be run with the access of the administrator?