PowerShell_Scripts/Invoke-Sudo.ps1

7 строки
173 B
PowerShell

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