
Reload-MyScripts modified to check for past aliases that might block it from working. Aliases dir created with some basic aliases Invoke-Sudo to make sudo command line calling simpler.
6 lines
173 B
PowerShell
6 lines
173 B
PowerShell
[CmdletBinding(SupportsShouldProcess)]param(
|
|
[Parameter(Mandatory = $true,Position = 0, ValueFromRemainingArguments = $true)]
|
|
$expr
|
|
)
|
|
|
|
. Invoke-ExpressionEx -sudo $expr
|