$path = 'C:\DeployPro\web.config'
$content = Get-Content $path -Raw
$patched = $content -replace 'nodeProcessCommandLine="[^"]*"', 'nodeProcessCommandLine="C:\PROGRA~1\nodejs\node.exe"'
[System.IO.File]::WriteAllText($path, $patched, [System.Text.Encoding]::UTF8)
Write-Host "Patched."
Select-String -Path $path -Pattern 'nodeProcessCommandLine'
