PowerShell modules are an important part of PowerShell scripting as they provide a means to reuse and share code. The next part in our PowerShell Studio Project series is about the basics of working with module projects in PowerShell Studio.…
Read More
The PowerShell pipeline can pass objects from one command to another, enabling output from a function to stream – or ‘pipe’ – as input into another command. In this article we will demonstrate how to leverage this functionality to seamlessly…
Read More
On Friday, February 3, we posted a Friday Puzzle that shows a PowerShell function and a PowerShell class method that contain the same command sequence, including a statement with the Return keyword.
The puzzle asks: What does the function return?…
Read More
Applies to PowerShell Studio 2016, PrimalScript 2016, and later.
I write lots of scripts — for production, for research, for testing, and for demonstrations. And, inevitably, I hit a bug. I’m actually relieved when I do, because no code is…
Read More
Our 2015 versions have been out for a while and most of you already know about some of the new features. But we want to make sure you don’t miss anything, so here is a brief recap.
PrimalScript 2015 now…
Read More
Like many of you, I really live at the command line, because automation is more efficient than single actions. But, as the command line becomes more complex, we need tools to restore our efficiency. The complex syntax of parameter sets…
Read More
PowerShell Studio 2014 added a new project feature: New Module From Functions.
You may find at times you reuse various functions and constantly copy them into new scripts or find different variations of the same function are located in different…
Read More
The original The Packager and Command line Arguments blog article discussed how to pass parameters to a packaged executable. In this article we will revisit this subject and update the functions introduced in the previous article. The article will also…
Read More
Last time we told you about some new debugger features in PrimalScript 2012. And you already know all about the new Ribbon user interface this new version sports. One thing that we were really focused about in this version was…
Read More
The other day I was involved in a short Twitter debate about the relative merits of using Return vs Write-Object (or its alias Write) in PowerShell functions. Here’s my take.
I treat Return as a legacy keyword. You may have…
Read More