mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-08 20:54:38 +02:00
Add template.ps1
This commit is contained in:
27
Scripts/template.ps1
Executable file
27
Scripts/template.ps1
Executable file
@ -0,0 +1,27 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
template.ps1
|
||||
.DESCRIPTION
|
||||
Copy this template PowerShell script to write a new one
|
||||
.EXAMPLE
|
||||
PS> .\template.ps1
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz
|
||||
License: CC0
|
||||
#>
|
||||
|
||||
param() # <- enter file parameter(s) here
|
||||
|
||||
# <- enter function(s) here
|
||||
|
||||
try {
|
||||
# <- enter workload here
|
||||
|
||||
"✔️ Done."
|
||||
exit 0
|
||||
} catch {
|
||||
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
exit 1
|
||||
}
|
Reference in New Issue
Block a user