Public/Open-UrlScanioReport.ps1
function Open-UrlScanioScreenshot { [CmdletBinding()] param ( [string[]]$id, [switch]$URLOnly ) if (!($PSBoundParameters.URLOnly)) { if ($id.Count -gt 1) { Write-Warning "This will open $($id.count) browser windows/tabs. Continue?" $choice = Read-Host "[Y] Yes [N] No" if ($choice -match 'y') { $run = $true } elseif ($choice -match 'n') { exit } else { Write-Error "Invalid choice" exit } } else { $run = $true } if ($run) { foreach ($scan in $id) { Start-Process "https://urlscan.io/result/$id/" } } } if ($PSBoundParameters.URLOnly) { Write-Output "https://urlscan.io/result/$id/" } } |