From 6e97f61418e0eccb4a90199075da10e091d0c82b Mon Sep 17 00:00:00 2001 From: Mindfang Date: Sun, 21 Jul 2024 09:59:19 -0500 Subject: [PATCH] Add some documentation --- PSScriptTools/ScriptTools.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/PSScriptTools/ScriptTools.ps1 b/PSScriptTools/ScriptTools.ps1 index 2657c92..a12f10c 100644 --- a/PSScriptTools/ScriptTools.ps1 +++ b/PSScriptTools/ScriptTools.ps1 @@ -28,8 +28,8 @@ Function Test-CommandExists { Example of how to run the script. .LINK - Links to further documentation. - + https://devblogs.microsoft.com/scripting/use-a-powershell-function-to-see-if-a-command-exists/ + .NOTES Detail on what the script does, if this is needed. @@ -45,10 +45,10 @@ Function Test-CommandExists { Return $true } } - catch { + Catch { Return $false } - finally { + Finally { $ErrorActionPreference = $OldPreference } }