PowerShell Crescendo Updated Prior to Release Candidate

Microsoft updated PowerShell Crescendo -- used to create native commands -- in advance of the next stage, a Release Candidate.

In announcing PowerShell Crescendo 0.7.0-Preview.4, program manager Jason Helmick said, "This is the last planned preview before the release candidate (RC). This preview adds support for a globally available schema, several community suggestions, and an experimental help parsing feature to improve complex native command maintenance." The tool was previewed in December of last year.

Microsoft.PowerShell.Crescendo 0.7.0
[Click on image for larger view.] Microsoft.PowerShell.Crescendo 0.7.0 (source: Microsoft).

Available in the PowerShell Gallery, Microsoft.PowerShell.Crescendo 0.7.0 is described as a module that improves user experience with native commands. Specifically, it's a framework for the rapid development of PowerShell cmdlets for native commands for all platforms. Its GitHub site gets into some details:

PowerShell is capable of invoking native applications like any shell. However, it would be an improved experience if the native command could participate in the PowerShell pipeline and take advantage of the parameter behaviors that are part of PowerShell.

The Crescendo module is an experiment to provide a novel way to create functions which invoke native commands by using a JSON configuration file.

The Microsoft.PowerShell.Crescendo module provides native commands a way to more easily participate in the PowerShell pipeline by facilitating parameter handling, converting native output into objects, and calling the native executable. This module provides a way to create a small bit of json, which can then be used to create a function which calls the native command.

Global schema support was highlighted as a main new feature in Preview 4. This involves a new authoring schema published at a well-known URL, unlike the previous method of referencing the schema as a local file path. In effect, it lets developers using Visual Studio Code and other supported tools enjoy IntelliSense, tooltips and similar language-specific "smarts" by accessing a URL that's always available, no matter where or how the development is taking place.

Other changes and links to their related GitHub issues include:

  • Added experimental native command help parser. Issue #99
  • New-CrescendoCommand should include an OriginalName parameter. Issue #82
  • Added Export-CrescendoCommand to create a configuration file. Issue #80
  • Added support for the ConfirmImpact CmdletBinding() argument.
  • Default parameter values are not used. Issue #101

Going forward, Helmick said, "The plans for the general release will be based on community feedback and include improved tooling and guidance for Crescendo cmdlets. Our goal is to make it easier to convert your native commands to PowerShell cmdlets and receive the benefits that PowerShell provides."

As of this writing, the tool has been downloaded from the gallery site 1,958 times, with only 17 downloads for the current 0.7.0 version.

About the Author

David Ramel is an editor and writer for Converge360.

comments powered by Disqus


  • Creating Reactive Applications in .NET

    In modern applications, data is being retrieved in asynchronous, real-time streams, as traditional pull requests where the clients asks for data from the server are becoming a thing of the past.

  • AI for GitHub Collaboration? Maybe Not So Much

    No doubt GitHub Copilot has been a boon for developers, but AI might not be the best tool for collaboration, according to developers weighing in on a recent social media post from the GitHub team.

  • Visual Studio 2022 Getting VS Code 'Command Palette' Equivalent

    As any Visual Studio Code user knows, the editor's command palette is a powerful tool for getting things done quickly, without having to navigate through menus and dialogs. Now, we learn how an equivalent is coming for Microsoft's flagship Visual Studio IDE, invoked by the same familiar Ctrl+Shift+P keyboard shortcut.

  • .NET 9 Preview 3: 'I've Been Waiting 9 Years for This API!'

    Microsoft's third preview of .NET 9 sees a lot of minor tweaks and fixes with no earth-shaking new functionality, but little things can be important to individual developers.

  • Data Anomaly Detection Using a Neural Autoencoder with C#

    Dr. James McCaffrey of Microsoft Research tackles the process of examining a set of source data to find data items that are different in some way from the majority of the source items.

Subscribe on YouTube