Add open-amazon.ps1 and open-facebook.ps1

This commit is contained in:
Markus Fleschutz
2021-10-25 16:33:14 +02:00
parent 312b38a04a
commit 33e36008ed
6 changed files with 96 additions and 0 deletions

20
Scripts/open-amazon.ps1 Executable file
View File

@ -0,0 +1,20 @@
<#
.SYNOPSIS
Opens Amazon's website
.DESCRIPTION
This script starts the Web browser and opens the Amazon website.
.EXAMPLE
PS> ./open-amazon
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
try {
& "$PSScriptRoot/open-browser.ps1" "https://www.amazon.com"
exit 0 # success
} catch {
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
exit 1
}

20
Scripts/open-facebook.ps1 Executable file
View File

@ -0,0 +1,20 @@
<#
.SYNOPSIS
Opens Facebook's website
.DESCRIPTION
This script starts the Web browser and opens Facebook's website.
.EXAMPLE
PS> ./open-facebook
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
try {
& "$PSScriptRoot/open-browser.ps1" "https://www.facebook.com"
exit 0 # success
} catch {
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
exit 1
}