PowerShell Studio 2015 – Editing Script Parameters

If you have used PowerShell Studio’s Function Builder chances are probably you wished it could edit your script parameters. Now it can. With the v4.2.85 service release of PowerShell Studio 2015 we introduced the new Parameter Builder.

Parameter Builder:

Those familiar with the Function Builder will recognize the similarities between the two tools, with the exception of the Name portion of the builder. Otherwise the Parameter Builder and the Function Builder share the same functionality. You can use the Parameter Builder to insert a new parameter block or edit existing script parameters.

You can access the Parameter Builder using the Ribbon:

Ribbon - Edit Parameters

Or the editor’s context menu:

Context menu

Or press [Ctrl + Shift + P] on the keyboard.

Just like the Function Builder, you can specify the parameters, parameter sets, validation, and help comments:

Parameter Builder

When you are done editing the parameters, it will produce a parameter block for your script:

Parameter block

 

Please refer to the following blog articles for more details on how to use the Function Builder / Parameter Builder:

https://www.sapien.com/blog/2014/09/30/powershell-studio-2014-editing-functions/

https://www.sapien.com/blog/2014/10/02/adding-parameter-sets-to-a-function/