This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Wraps the Invoke-Command to seamlessy execute script blocks remote or local | |
.DESCRIPTION | |
Invoke-Command does not provide a transparent method to execute script blocks locally or remotely without conditions. This limited wrapper commandlet does this. | |
Every blocked is wrapped with logging statements | |
.PARAMETER ScriptBlock | |
The script block | |
.PARAMETER BlockName | |
Name of the block. This is for logging purposes. |
NewerOlder