Carbon v1.3 is out, is backwards compatible with v1.0 through v1.2. This release improves PowerShell 3 compatibility, updates Invoke-PowerShell so it can run scripts, and adds ConvertTo-Base64 and ConvertFrom-Base64 functions.
Thanks to Jason Stangroome for the feedback that contributed to the work done in this release.
Enhancements
PowerShell
- Invoke-PowerShell now supports running an external script.
- Added
OutputFormat
argument to Invoke-PowerShell so your scripts/script blocks can return XML results instead of plain text. - Renamed Invoke-PowerShell’s
Args
parameter toArgumentList
(with backwards compatibileArgs
alias). - Renamed Invoke-PowerShell’s
Command
parameter toScriptBlock
(with backwards-compatibleCommand
alias). - Invoke-PowerShell now runs 64-bit PowerShell from 32-bit PowerShell.
- Get-PowerShellPath now returns path for 64-bit PowerShell when running 32-bit PowerShell.
Text
- Created new ConvertTo-Base64 function for encoding strings in base-64.
- Created new ConvertFrom-Base64 function for decoding base-64 strings.
Bug Fixes
.NET
- Set-DotNetAppSetting and Set-DotNetConnectionString weren’t able to set .NET 2.0 app settings and connections string when running under PowerShell 3.