Add some documentation

This commit is contained in:
2024-07-21 09:59:19 -05:00
parent 9a27ab0fbd
commit 6e97f61418

View File

@@ -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
}
}