blob: b4327bd43db48e3d5625ddff8dac4e5fc4313252 (
plain)
1
2
3
4
5
6
7
8
9
10
|
param([string]$EvidenceRoot = 'artifacts\evidence\sandbox-usability-precommit')
$ErrorActionPreference = 'Stop'
$verification = (Resolve-Path (Join-Path $PSScriptRoot 'Run-Final-ElevatedVerification.ps1')).Path
$repository = (Resolve-Path (Join-Path $PSScriptRoot '..')).Path
$arguments = @(
'-NoProfile', '-ExecutionPolicy', 'Bypass', '-NoExit', '-File', ('"' + $verification + '"'),
'-EvidenceRoot', $EvidenceRoot
)
Start-Process -FilePath 'C:\Program Files\PowerShell\7\pwsh.exe' -Verb RunAs -ArgumentList $arguments -WorkingDirectory $repository -WindowStyle Normal
|