Datum.InvokeCommand
0.4.1
Datum Handler module to dynamically invoke PowerShell commands and expand strings within Datum configuration data. Enables embedding script blocks and expandable strings in YAML configuration files for DSC (Desired State Configuration) data resolution.
Minimum PowerShell version
4.0
Installation Options
Owners
Copyright
(c) 2019 Raimund Andree. All rights reserved.
Package Details
Author(s)
- Raimund Andree
Tags
DesiredStateConfiguration DSC DSCResource Datum
Functions
Invoke-InvokeCommandAction Test-InvokeCommandFilter
Dependencies
This module has no dependencies.
Release Notes
## [0.4.1] - 2026-02-25
### Fixed
- Fix `Test-InvokeCommandFilter` emitting `$false` for every non-matching
pipeline element in the `process` block, causing `[bool]@($false,$false,$false)`
to evaluate as `$true` and triggering the handler on non-string collections
- Fix incorrect property name `.Key` to `.Name` in `HashArray2[2]` and
`HashArray3[-1]` test cases in `HashArrays.tests.ps1`
### Changed
- Renamed `master` branch to `main`.
- Enhance integration tests to assert no handler warnings and non-null
resolved values, preventing silent passes on handler failures
- Fix 4 unit tests in `Invoke-InvokeCommandAction.tests.ps1` that
asserted an undefined `$result` variable after `Should -Throw`
### Added
- Add `Get-DatumRsopSafe` helper to `TestHelpers.psm1` that captures
the warning stream alongside the RSOP result for test assertions
- Add pipeline collection tests for `Test-InvokeCommandFilter` to verify
correct behavior with non-string collections and mixed input
FileList
- Datum.InvokeCommand.nuspec
- Datum.InvokeCommand.psd1
- Modules\DscResource.Common\0.24.5\DscResource.Common.psd1
- Modules\DscResource.Common\0.24.5\DscResource.Common.psm1
- Datum.InvokeCommand.psm1
- Modules\DscResource.Common\0.24.5\en-US\DscResource.Common-help.xml
- en-US\Datum.InvokeCommand.strings.psd1
- Modules\DscResource.Common\0.24.5\en-US\about_DscResource.Common.help.txt
- en-US\Datum.InvokeCommand-help.xml
- Modules\DscResource.Common\0.24.5\en-US\DscResource.Common.strings.psd1
- Config\Datum.InvokeCommand.Config.psd1
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 0.4.1 (current version) | 138 | 2/25/2026 |
| 0.4.1-previe... | 5 | 2/25/2026 |
| 0.4.0 | 57 | 2/23/2026 |
| 0.4.0-previe... | 2 | 2/25/2026 |
| 0.4.0-previe... | 2 | 2/25/2026 |
| 0.4.0-previe... | 3 | 2/23/2026 |
| 0.4.0-previe... | 2 | 2/23/2026 |
| 0.4.0-previe... | 2 | 2/23/2026 |
| 0.4.0-previe... | 2 | 2/23/2026 |
| 0.3.0 | 13,876 | 3/20/2023 |
| 0.3.0-previe... | 13 | 3/20/2023 |
| 0.3.0-previe... | 9 | 3/19/2023 |
| 0.3.0-previe... | 9 | 3/19/2023 |
| 0.3.0-previe... | 9 | 3/16/2023 |
| 0.3.0-previe... | 3,962 | 4/16/2022 |
| 0.3.0-previe... | 211 | 3/31/2022 |
| 0.3.0-previe... | 204 | 3/10/2022 |
| 0.3.0-previe... | 201 | 2/18/2022 |
| 0.3.0-previe... | 226 | 1/17/2022 |
| 0.3.0-previe... | 21 | 1/17/2022 |
| 0.2.0-previe... | 115 | 9/8/2021 |
| 0.1.3-previe... | 19 | 9/8/2021 |
| 0.1.3-previe... | 29 | 3/9/2021 |
| 0.1.3-previe... | 21 | 3/9/2021 |
| 0.1.3-previe... | 22 | 3/3/2021 |
| 0.1.3-previe... | 54 | 12/24/2020 |
| 0.1.3-previe... | 22 | 12/24/2020 |
| 0.1.2 | 1,259 | 12/16/2020 |
| 0.1.2-previe... | 24 | 12/16/2020 |
| 0.1.2-previe... | 24 | 12/16/2020 |
| 0.1.1 | 185 | 8/25/2020 |
| 0.1.1-previe... | 21 | 8/25/2020 |