Execution

3.0.1

Common execution and self elevation

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name Execution

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name Execution

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2026 mtb.me. All rights reserved.

Package Details

Author(s)

  • Manuel

Functions

Set-PSScriptID Restart-SelfElevated Exit-AndWaitOnUI Invoke-Process Start-NativeExecution ConvertTo-SplatHashtable Format-SplatHashtable Get-QuotedPath Test-CalledFromPrompt Clear-TempDirectories Remove-ItemSafe Invoke-WhenFileChanged

Dependencies

Release Notes

# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v3.0.1] - 2026-04-16

### Fixed

- Add missing `Get-ScriptIsCalledFromUI` cmdlet

## [v3.0.0] - 2026-04-16

### Added

- Add hashtable splatting support

### Fixed

- Remove deprecated support for psScriptID

## [v2.1.1] - 2025-12-29

### Fixed

- Remove set PSScriptID in stacktrace 1

## [v2.1.0] - 2025-12-29

### Changed

- Refactoring to using `PSScriptID` explicit

## [v2.0.2] - 2024-04-28

### Fixed

- Fix parsing bound parameters

## [2.0.1] - 2024-04-27

### Changed

- Only reformatted release notes.

## [v2.0.0] - 2024-04-27

### Changed

- Simplify usage and fix issues when invoke multiple scripts inside (#3).
- Add prefix to mutex files in windows temp folder (#2).

## [v1.7.0] - 2020-03-09

### Fixed

- Better $LASTERRORCODE handling when PowerShell scripts are called from batch files.

FileList

Version History

Version Downloads Last updated
3.0.1 (current version) 277 4/16/2026
3.0.0 6 4/16/2026
2.1.1 1,663 12/29/2025
2.1.0 6 12/29/2025
2.0.2 75,833 4/28/2024
2.0.1 328 4/27/2024
2.0.0 11 4/26/2024
1.7.0 23,958 3/9/2020
1.6.2 447 2/5/2020
1.6.1 86 2/3/2020
1.6.0 42 2/3/2020
1.5.1 2,278 4/24/2019
1.5.0 201 4/1/2019
1.4.4 51 3/31/2019
1.4.3 43 3/31/2019
1.4.2 45 3/31/2019
1.4.1 43 3/30/2019
1.4.0 42 3/30/2019
1.3.0 43 3/30/2019
1.2.2 43 3/29/2019
1.2.1 42 3/29/2019
1.2.0 67 3/28/2019
1.1.0 48 3/27/2019
1.0.2 46 3/26/2019
1.0.1 104 3/17/2019
1.0.0 68 3/17/2019
Show more