16 lines
475 B
PowerShell
16 lines
475 B
PowerShell
param(
|
|
[Parameter(ValueFromRemainingArguments = $true)]
|
|
[string[]]$RemainingArgs
|
|
)
|
|
|
|
$ErrorActionPreference = "Stop"
|
|
|
|
$newScript = Join-Path $PSScriptRoot "run-ocsentinel-monitor.ps1"
|
|
if (-not (Test-Path $newScript)) {
|
|
throw "Replacement script not found: $newScript"
|
|
}
|
|
|
|
Write-Host "Compatibility wrapper: run-attacktracer-ninja-monitor.ps1 -> run-ocsentinel-monitor.ps1"
|
|
& powershell.exe -ExecutionPolicy Bypass -File $newScript @RemainingArgs
|
|
exit $LASTEXITCODE
|