Skip to content

Open-Dashboards

Open Web dashboards

#requires -version 5.1

param([int]$timeInterval = 120) # milliseconds

try {
	Write-Progress "Reading data/popular-dashboards.csv..."
	$table = Import-CSV "$PSScriptRoot/data/popular-dashboards.csv"
	$numRows = $table.Count
	Write-Progress -completed "Done."

	Write-Host "? Launching Web browser with $numRows new tabs: " -noNewline
	foreach($row in $table) {
		Write-Host "$($row.NAME), " -noNewline
		& "$PSScriptRoot/open-default-browser.ps1" "$($row.URL)"
		Start-Sleep -milliseconds $timeInterval
	}
	Write-Host ""
	Write-Host "?? Hint: use './switch-tabs.ps1' to automatically switch from tab to tab."
	exit 0 # success
} catch {
	"?? ERROR: $($Error[0]) (script line $($_.InvocationInfo.ScriptLineNumber))"
	exit 1
}

Specifies the time interval between each tab (110ms per default)

An interactive directory of PowerShell scripts.