Auto-open DevTools on every new tab For powershell on Windows

To auto-open DevTools on every new tab in PowerShell on Windows, you can use the following code snippet:

$ErrorActionPreference = "SilentlyContinue"
$regPath = "HKCU:\Software\Microsoft\Internet Explorer\Main"
$regName = "DevToolsOpenWith"

if (!(Test-Path $regPath)) {
    New-Item -Path $regPath -Force | Out-Null
}

Set-ItemProperty -Path $regPath -Name $regName -Value 1 -Type DWORD | Out-Null

This code sets the registry value DevToolsOpenWith to 1 under the HKCU:\Software\Microsoft\Internet Explorer\Main registry path. This will enable the auto-opening of DevTools on every new tab in Internet Explorer.

Please note that modifying the registry can have unintended consequences, and it's always a good idea to back up your registry or create a system restore point before making any changes.

I hope this helps! Let me know if you have any further questions.