$kh = "C:\Users\User\Desktop\keyhunter" $py = "C:\Users\User\AppData\Local\Programs\Python\Python311\python.exe" $lanes = @( @("gh_eternal.py", "gh_eternal_out.log"), @("validator_loop.py", "validator_loop.log"), @("eternal_export.py", "eternal_export.log"), @("gateway_importer.py", "gateway_importer.log"), @("huggingface_eternal.py", "hf_eternal.log"), @("gist_eternal.py", "gist_eternal.log"), @("grepapp_eternal.py", "grepapp_eternal.log"), @("npm_eternal.py", "npm_eternal.log"), @("pypi_eternal.py", "pypi_eternal.log"), @("gitlab_eternal.py", "gitlab_eternal.log"), @("codeberg_eternal.py", "codeberg_eternal.log"), @("forum_eternal.py", "forum_eternal.log"), @("bitbucket_eternal.py", "bitbucket_eternal.log"), @("gh_issues_eternal.py", "gh_issues.log"), @("gh_commits_eternal.py", "gh_commits.log") ) foreach ($l in $lanes) { $script = $l[0]; $log = $l[1] $exists = Get-CimInstance Win32_Process -Filter "Name='python.exe'" | Where-Object { $_.CommandLine -match [regex]::Escape($script) } if (-not $exists) { Start-Process -FilePath $py -ArgumentList "-u", $script -WorkingDirectory $kh ` -RedirectStandardOutput "$kh\$log" -RedirectStandardError "$kh\err_$log" ` -WindowStyle Hidden Write-Output "STARTED $script" } else { Write-Output "ALIVE $script" } } # eternal_v10 x2 $v10 = Get-CimInstance Win32_Process -Filter "Name='python.exe'" | Where-Object { $_.CommandLine -match 'eternal_v10' } $n = ($v10 | Measure-Object).Count for ($i = $n; $i -lt 2; $i++) { Start-Process -FilePath $py -ArgumentList "-u", "eternal_v10.py" -WorkingDirectory "$kh\src" ` -RedirectStandardOutput "$kh\v10_$i.log" -RedirectStandardError "$kh\v10_$i.err.log" -WindowStyle Hidden Write-Output "STARTED eternal_v10 #$i" } Write-Output "FLEET UP"