test 1
This commit is contained in:
@@ -88,7 +88,8 @@
|
||||
# 1) ENTRYPOINT + PARAMETER DECLARATION
|
||||
# ─────────────────────────────────────────────────────────────────────────
|
||||
|
||||
|
||||
function Invoke-ScriptMonkey {
|
||||
|
||||
[CmdletBinding(
|
||||
DefaultParameterSetName='UI',
|
||||
SupportsShouldProcess=$true,
|
||||
@@ -1564,4 +1565,16 @@ $script
|
||||
|
||||
}
|
||||
#endregion ScriptMonkey run silently Entrypoint
|
||||
}
|
||||
|
||||
if ($MyInvocation.InvocationName -eq '.') {
|
||||
# dot-sourced, don't invoke
|
||||
} elseif ($PSCommandPath) {
|
||||
# script was saved and run directly
|
||||
Invoke-ScriptMonkey @PSBoundParameters
|
||||
} else {
|
||||
# iwr | iex fallback
|
||||
Invoke-ScriptMonkey
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user