From e65c439ef76643d833b55d9d3198ea688c799571 Mon Sep 17 00:00:00 2001 From: Mindfang Date: Tue, 10 Sep 2024 11:53:25 -0500 Subject: [PATCH] Add "Add-ListItem" function --- PSScriptTools/ScriptTools.ps1 | 41 +++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/PSScriptTools/ScriptTools.ps1 b/PSScriptTools/ScriptTools.ps1 index a12f10c..79e825c 100644 --- a/PSScriptTools/ScriptTools.ps1 +++ b/PSScriptTools/ScriptTools.ps1 @@ -118,6 +118,47 @@ Function Add-LogEntry { } } +Function Add-ListItem () { + <# + .SYNOPSIS + A brief description of the function or script. + + .DESCRIPTION + A longer description. + + .PARAMETER FirstParameter + Description of each of the parameters. + Note: + To make it easier to keep the comments synchronized with changes to the parameters, + the preferred location for parameter documentation comments is not here, + but within the param block, directly above each parameter. + + .PARAMETER SecondParameter + Description of each of the parameters. + + .INPUTS + Description of objects that can be piped to the script. + + .OUTPUTS + Description of objects that are output by the script. + + .EXAMPLE + Example of how to run the script. + + .LINK + Links to further documentation. + + .NOTES + Detail on what the script does, if this is needed. + + #> + + Param ( + [Parameter(Mandatory = $true)] [ValidateNotNullorEmpty()]$Message + ) + Write-Host " * $Message" +} + Function Start-Logging { <# .SYNOPSIS