Trim Trailing Whitespace

This commit is contained in:
Carterpersall
2023-10-04 10:08:10 -05:00
parent 807b0fb307
commit 0ce32aa2c2
57 changed files with 236 additions and 236 deletions

View File

@@ -1,6 +1,6 @@
function Invoke-WinUtilScript {
<#
.DESCRIPTION
This function will run a separate powershell script. Meant for things that can't be handled with the other functions
@@ -8,7 +8,7 @@ function Invoke-WinUtilScript {
$Scriptblock = [scriptblock]::Create({"Write-output 'Hello World'"})
Invoke-WinUtilScript -ScriptBlock $scriptblock -Name "Hello World"
#>
param (
$Name,
@@ -38,7 +38,7 @@ function Invoke-WinUtilScript {
Catch {
# Generic catch block to handle any other type of exception
Write-Warning "Unable to run script for $name due to unhandled exception"
Write-Warning $psitem.Exception.StackTrace
Write-Warning $psitem.Exception.StackTrace
}
}