mirror of
https://github.com/ChrisTitusTech/winutil
synced 2026-02-04 15:00:09 +00:00
Trim Trailing Whitespace
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user