This file contains 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
function Invoke-SystemCommand { | |
<# | |
.SYNOPSIS | |
Execute a scriptblock as SYSTEM by setting up a temporary scheduled task. | |
.DESCRIPTION | |
Execute a scriptblock as SYSTEM by setting up a temporary scheduled task. | |
.PARAMETER Name | |
The name of the task |