@iamjaredm Can you try the below step and please let me know if it works
Step 1: Now test from UiPath
In UiPath, keep your Invoke Power Shell activity like this:
IsScript: True
CommandText for Chrome:
$ErrorActionPreference = “Stop”
$setupPath = “C:\Program Files\UiPath\Studio\UiPath\SetupExtensions.exe”
if (!(Test-Path $setupPath)) {
$setupPath = “$env:LOCALAPPDATA\Programs\UiPath\Studio\UiPath\SetupExtensions.exe”
}
if (!(Test-Path $setupPath)) {
throw “SetupExtensions.exe not found”
}
& $setupPath /Chrome-Policy-Offline /silent
“ExitCode=$LASTEXITCODE”
For Edge:
$ErrorActionPreference = “Stop”
$setupPath = “C:\Program Files\UiPath\Studio\UiPath\SetupExtensions.exe”
if (!(Test-Path $setupPath)) {
$setupPath = “$env:LOCALAPPDATA\Programs\UiPath\Studio\UiPath\SetupExtensions.exe”
}
if (!(Test-Path $setupPath)) {
throw “SetupExtensions.exe not found”
}
& $setupPath /Edge-Policy-Offline /silent
“ExitCode=$LASTEXITCODE”
Step 2: Important setting in Invoke Power Shell
In the activity properties:
IsScript = True
Execution Mode = PowerShell 7.2.15 or Windows PowerShell
Output = psOutput
Create one variable:
psOutput, Type: Collection or use the type suggested by UiPath when you create the output variable.
Then add a Log Message after Invoke Power Shell:
String.Join(Environment.NewLine, psOutput)
This will show whether the command returned anything.
Step 3: Restart browser and check again
After the UiPath run completes:
Close Chrome/Edge completely.
Reopen browser.
Go to:
chrome://extensions
edge://extensions
Check whether UiPath Web Automation is installed.