PowerShell_Scripts/base/Invoke-Sudo.ps1

7 lines
173 B
PowerShell
Raw Normal View History

[CmdletBinding(SupportsShouldProcess)]param(
[Parameter(Mandatory = $true,Position = 0, ValueFromRemainingArguments = $true)]
$expr
)
. Invoke-ExpressionEx -sudo $expr