PowerShell/Scripts/open-google-translate.ps1
2021-10-25 10:15:01 +02:00

21 lines
468 B
PowerShell
Executable File

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