Required/Reset-QuickCommand.ps1
function global:Reset-QuickCommand { param( [String]$commandName ) . $PSScriptRoot\Reserved\Get-QuickEnvironment.ps1 . $QuickReservedHelpersRoot\Test-QuickFunctionVariable.ps1 $commandName = Test-QuickFunctionVariable $PSBoundParameters 'commandName' 'Please enter the function/alias to reset' if(Test-Path "$QuickFunctionsRoot\$commandName.ps1") { . "$QuickFunctionsRoot\$commandName.ps1" } elseif(Test-Path "$QuickAliasesRoot\$commandName.ps1") { . "$QuickAliasesRoot\$commandName.ps1" } else { Write-Output "Command '$commandName' not found." return; } } |