public/TEMPLATE.ps1
# TEMPLATE function Verb-Noun { <# .SYNOPSIS Short .COMPONENT ScriptProcessing | Network | FileSystemObject | API .DESCRIPTION Longer Description .PARAMETER Base64String The base64 string to convert. .EXAMPLE PS> Verb-Noun outputOfFunction .EXAMPLE PS> 'abc' | Verb-Noun outputOfFunction .NOTES optional - Inspired by https://… #> [CmdletBinding(SupportsShouldProcess, HelpUri="https://github.com/pagebox/brickBOX/wiki/Verb-Noun")] [OutputType([string])] param ( [Parameter(Mandatory, Position = 0, ValueFromPipeline)][ValidateNotNullOrEmpty()][string]$Base64String, [System.Text.Encoding]$Encoding = [System.Text.Encoding]::Utf8 ) begin {} process { # if($PSCmdlet.ShouldProcess($file.Name)){ # write-host "Processing file: $($file.Name)" # } } end {} } |