Uipath - Invoke Powershell as Administrator using Batch File

Check this UiPath Community 2023.12 Release

You will need a Studio 23.10.+ (it was introduced in the 23.12 Community version), that means in the newer update will be present) with UiPath.System.Activities.23.12.0-preview and you will choose the correct PowerShell version from your system that has that cmdlet for get-localuser installed.