Execution
5.5.0
Common execution helpers, self-elevation and stub-script wrapper for PowerShell.
Minimum PowerShell version
5.1
Installation Options
Owners
Copyright
(c) 2026 mtb.me. All rights reserved.
Package Details
Author(s)
- Manuel
Tags
Execution Self-Elevation Stub PowerShell Windows Environment EnvVar PATH PSModulePath
Functions
Add-ToMultiValueEnvVar Clear-TempDirectories ConvertTo-SplatHashtable Exit-AndWaitOnUI Format-SplatHashtable Get-QuotedPath Invoke-NativeCommand Invoke-StubScript Invoke-WhenFileChanged Remove-EnvVar Remove-FromMultiValueEnvVar Remove-ItemSafe Remove-NativeProgressNoise Restart-SelfElevated Set-EnvVar Set-PSScriptID
PSEditions
Dependencies
This module has no dependencies.
Release Notes
Execution v5.5.0+sha.72167c5
## [v5.5.0] - 2026-06-13
### Fixed
- `Exit-AndWaitOnUI`: pure modifier keydowns (Shift, Ctrl, Alt, Win,
CapsLock, NumLock, ScrollLock) no longer end the "Press any key to
continue..." wait. `$Host.UI.RawUI.ReadKey` returns on the keydown
of a bare modifier, so e.g. holding Ctrl to Ctrl+Click an OSC 8
hyperlink in Windows Terminal closed the window before the click
registered; the read now loops until a non-modifier key arrives.
The virtual-key classification lives in the new private helper
`Test-IsModifierKeyCode` (Pester-covered); `RawUI.ReadKey` itself is
kept unchanged for host compatibility.
FileList
- Execution.nuspec
- Execution.psd1
- Execution.psm1
- Templates\README.md
- Templates\_add-this-dir-to-VARNAME-envvar.cmd.template
- Templates\_add-this-dir-to-VARNAME-envvar.machine.cmd.template
- Templates\_add-this-dir-to-VARNAME-envvar.machine.ps1.template
- Templates\_add-this-dir-to-VARNAME-envvar.ps1.template
- Templates\_remove-this-dir-from-VARNAME-envvar.cmd.template
- Templates\_remove-this-dir-from-VARNAME-envvar.machine.cmd.template
- Templates\_remove-this-dir-from-VARNAME-envvar.machine.ps1.template
- Templates\_remove-this-dir-from-VARNAME-envvar.ps1.template
- Templates\add-envvar.cmd.template
- Templates\add-envvar.interactive.cmd.template
- Templates\add-envvar.interactive.machine.cmd.template
- Templates\add-envvar.interactive.machine.ps1.template
- Templates\add-envvar.interactive.ps1.template
- Templates\add-envvar.machine.cmd.template
- Templates\add-envvar.machine.ps1.template
- Templates\add-envvar.ps1.template
- Templates\remove-envvar.cmd.template
- Templates\remove-envvar.machine.cmd.template
- Templates\remove-envvar.machine.ps1.template
- Templates\remove-envvar.ps1.template
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 5.7.1 | 403 | 10/15/2026 |
| 5.7.0 | 2,722 | 8/19/2026 |
| 5.6.0 | 869 | 7/29/2026 |
| 5.5.0 (current version) | 1,277 | 6/12/2026 |
| 5.4.1 | 93 | 6/11/2026 |
| 5.4.0 | 728 | 5/18/2026 |
| 5.3.4 | 125 | 5/15/2026 |
| 5.3.3 | 24 | 5/15/2026 |
| 5.3.2 | 187 | 5/11/2026 |
| 5.3.1 | 138 | 5/8/2026 |
| 5.3.0 | 110 | 5/7/2026 |
| 5.2.1 | 51 | 5/6/2026 |
| 5.2.0 | 88 | 5/6/2026 |
| 5.1.0 | 222 | 5/5/2026 |
| 5.0.0 | 11 | 5/5/2026 |
| 4.0.0 | 73 | 5/4/2026 |
| 3.0.1 | 500 | 4/16/2026 |
| 3.0.0 | 8 | 4/16/2026 |
| 2.1.1 | 1,668 | 12/29/2025 |
| 2.1.0 | 9 | 12/29/2025 |
| 2.0.2 | 75,835 | 4/28/2024 |
| 2.0.1 | 329 | 4/27/2024 |
| 2.0.0 | 12 | 4/26/2024 |
| 1.7.0 | 23,959 | 3/9/2020 |
| 1.6.2 | 448 | 2/5/2020 |
| 1.6.1 | 89 | 2/3/2020 |
| 1.6.0 | 43 | 2/3/2020 |
| 1.5.1 | 2,284 | 4/24/2019 |
| 1.5.0 | 203 | 4/1/2019 |
| 1.4.4 | 52 | 3/31/2019 |
| 1.4.3 | 44 | 3/31/2019 |
| 1.4.2 | 50 | 3/31/2019 |
| 1.4.1 | 45 | 3/30/2019 |
| 1.4.0 | 47 | 3/30/2019 |
| 1.3.0 | 45 | 3/30/2019 |
| 1.2.2 | 44 | 3/29/2019 |
| 1.2.1 | 43 | 3/29/2019 |
| 1.2.0 | 73 | 3/28/2019 |
| 1.1.0 | 53 | 3/27/2019 |
| 1.0.2 | 51 | 3/26/2019 |
| 1.0.1 | 109 | 3/17/2019 |
| 1.0.0 | 69 | 3/17/2019 |