# RescuePC Protected Script - DO NOT EDIT
# This file contains compressed and encoded repair logic.
# Source code is maintained separately in the development repository.


param(
    [Parameter(Mandatory=$true)]
    [string]$ScriptName,
    
    [Parameter(Mandatory=$false)]
    [string]$LogPath,
    
    [Parameter(Mandatory=$false)]
    [string]$RepairId,
    
    [Parameter(Mandatory=$false)]
    [switch]$NoPrompt,
    
    [Parameter(Mandatory=$false)]
    [switch]$Aggressive,
    
    [Parameter(Mandatory=$false)]
    [switch]$FixAllMode  # P0 FIX: Prevents explorer restart spam during batch repairs
)

$_p = @"
H4sIAAAAAAAACsU8bW/bOJPf9SsIwTjbe5Wu7b7g4EOAuraTeuvYPstp+yDrZhmJcbSRRS1JJ/XT5L8fhqQkUpZf0g1w/tCNJHI4M5x3DtdpDBijrBuKmKZT
Rm4II2lI0AlqBoJmTacxZXTJCOeVj3FCUpFsejQVcbomTcdpzNZpStiMUoFOUONqNu1dBSGLMwGvJKC/SCgf0AkKsiQW3hSLW+RNMSOpQK2adwbQttNQ4LgG
8TuNUzXagu1yNeoPRjIcsz/0o+s0zmm0Tsix0/Vo12mk6ySxJ5iIuOXAIF6mcbr8SDbHLsLVjD/uyIa7jtNYJvQaJx2bUHO5YojNThN6McSm1yS/hILDu+n6
OonDj2Qj8bTprBDkZji88zI5wf+2SlwLEIzGYs3IJ5zEESx5gxNOijHdJKEPJNLUnDK6OsdpfEM4oPeu1S4GjuKQpJzMY8LQCXLfd4Nhz3Wc+Aa1vJQK1BjR
JSDYRt8dhJB87sdsD78TuswF4gr+duW8AmBrTriWPA2rncOG35g8eENBVkj+O99kBPVjRkJB2QZZ05B3SllI0COarIU3XieJBPJUoLnNYz3R1dg1WmdEeH0s
iIS1wgI1N5vN5vw8iq4+fFitOG+2rxotLRRjvCLIYyRLcEhQ8w8/428azVfNZttP6NJ1nhxHsE3Op4QuZ0SQFLS9jzccnaCfXxefFAvrtFAjXjDNYJeaZ3Kr
wQVOyGmcEIAP1PRu4yRSDDQnIe80TgQpaf9J4ixfE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OXdwpTN0Ayq8v9K5eAkbmivKaqa67Wr9Tqzr
P4q/+jKXOehl7nyphK0cZSBh5NHwpvY+7c6LSDDDuuxo02bdRoIP5t3QytjqrUsZqlRZ9uyrNRKUEfuUoC6vKU0WRlxUJrUyabY2Kn9rXJal+ib7II3s8TDD
uN6/PaOvhTwgIU0jrtFZYXG76HRmUHNoFYrgz6nAiR75Cukj/EEu7haWuRLkhIB+1Emc+qT2o6IB5n7Yn1QpqXIdrB6off/TWtr6pEhRia6N57uWGXgomot7
qXUDi8Y356lscppT2eKEoNUoA4lxjrhfpgts+lrf78FkjAafhv3BuDdQxTUorR2yoUe4gNJI/FNQLuALpv4Hkd3RJtpLCGbedDiE84sRXR7+32Dkbrd+5tTE
vbZMVlPVMqpgNEWwj7JkWl8CA61AobqEl+tCzbBc/WQgXKtnpc42T99AvsPV+/rrdOgmln3S5X06WQosUPg/Ne5oN9ZIAAA=
"@

$_b=[System.Convert]::FromBase64String($_p.Replace("`n","").Replace("`r",""))
$_m=[System.IO.MemoryStream]::new($_b)
$_g=[System.IO.Compression.GZipStream]::new($_m,[System.IO.Compression.CompressionMode]::Decompress)
$_r=[System.IO.StreamReader]::new($_g,[System.Text.Encoding]::UTF8)
$_c=$_r.ReadToEnd();$_r.Dispose();$_g.Dispose();$_m.Dispose()
$_s=$PSScriptRoot
$_c="`$_RPC_ScriptRoot='$_s'" + [char]10 + $_c
. ([scriptblock]::Create($_c))
