PowerShell/scripts/write-help.ps1

48 lines
2.6 KiB
PowerShell
Raw Normal View History

2024-09-03 15:00:02 +02:00
<#
2024-06-18 09:19:46 +02:00
.SYNOPSIS
Provide help to the user
.DESCRIPTION
This PowerShell script launches new tabs in the Web browser with help pages.
.EXAMPLE
PS> ./open-help.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
2024-05-29 17:07:27 +02:00
try {
2024-06-18 09:19:46 +02:00
""
2024-09-03 15:00:02 +02:00
Write-Host " " -foregroundColor black -backgroundColor white
Write-Host " ▄▄▄▄▄▄▄ ▄ ▄▄▄ ▄▄▄▄▄▄▄ " -foregroundColor black -backgroundColor white
Write-Host " █ ▄▄▄ █ ▄▄▀█ █ ▄▄▄ █ " -foregroundColor black -backgroundColor white
Write-Host " █ ███ █ █▀ ▄▀ █ ███ █ " -foregroundColor black -backgroundColor white
Write-Host " █▄▄▄▄▄█ ▄▀█▀█ █▄▄▄▄▄█ " -foregroundColor black -backgroundColor white
Write-Host " ▄▄▄▄ ▄ ▄▄▄██▄ ▄▄▄ ▄ " -foregroundColor black -backgroundColor white
Write-Host " ▀ █ ▀▄▄▀█▀▀█▀█▀█▀▀▀▄█ " -foregroundColor black -backgroundColor white
Write-Host " ▄▄██▀▀▄▄█ ▄▀▄▄▄▀ ▀ ▀▄ " -foregroundColor black -backgroundColor white
Write-Host " ▄▄▄▄▄▄▄ ▀▀██▄▄██▄ ▀ ▀ " -foregroundColor black -backgroundColor white
Write-Host " █ ▄▄▄ █ ▀▄ ▄▀ ▀ ██▀▀ " -foregroundColor black -backgroundColor white
Write-Host " █ ███ █ █▄ ▄ ▀▄ ▀█▀ " -foregroundColor black -backgroundColor white
Write-Host " █▄▄▄▄▄█ █▀▄█ ███▀ ▄ ▀ " -foregroundColor black -backgroundColor white
Write-Host " " -foregroundColor black -backgroundColor white
2024-06-18 09:19:46 +02:00
""
2024-09-03 15:00:02 +02:00
Write-Host " 🔷 PowerShell documentation: " -noNewline
Write-Host "https://docs.microsoft.com/en-us/powershell" -foregroundColor blue
2024-05-29 17:07:27 +02:00
2024-09-03 15:00:02 +02:00
Write-Host " 🔷 PowerShell tutorial: " -noNewline
Write-Host "https://www.guru99.com/powershell-tutorial.html" -foregroundColor blue
2024-06-18 09:19:46 +02:00
2024-09-03 15:00:02 +02:00
Write-Host " 🔷 PowerShell FAQ's: " -noNewline
Write-Host "https://github.com/fleschutz/PowerShell/blob/main/docs/FAQ.md" -foregroundColor blue
2024-06-18 09:19:46 +02:00
2024-09-03 15:00:02 +02:00
Write-Host " 🔷 PowerShell Cheat Sheet: " -noNewline
Write-Host "https://github.com/fleschutz/PowerShell/blob/main/docs/cheat-sheet.md" -foregroundColor blue
2024-06-18 09:19:46 +02:00
""
"NOTE: Use <Ctrl> + <Click> to open the links in your browser."
2024-05-29 17:07:27 +02:00
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
2024-08-26 15:36:14 +02:00
}