To use PowerShell in FinalBuilder you need to have PowerShell 1.x installed on your machine. The download at the time of writing is: http://www.microsoft.com/windowsserver2003/technologies/management/powershell/download.mspx
Python support is included with FinalBuilder, using Microsoft's IronPython 2.0.
Active scripting based languages can be debugged using the Active Script Debugger, provided the language vendor supports debugging. To enable debugging you will need the Active Script Debugger installed, or Visual Studio.NET (which overrides the script debugger). PowerShell and Python script debugging is not yet possible.
What can I do in the Scripts
FinalBuilder Script Events are Triggered Before and After an Action Executes. See Action Script Events for more information on these events.
There is also a Run Script action.
Using FinalBuilder Variables in Scripts
FinalBuilder variables are available in script events as global variables. You can reference them just as you would any other identifier. In PowerShell, you must access FinalBuilder variables with the following syntax:
$FBVariables.GetVariable(<variablename>) and $FBVariables.SetVariable(<variablename>)
Using Action List Parameters in Scripts
Action List Parameters are available in script events as global variables (same as FinalBuilder variables.)
Including External Scripts
Example - VBScript
Note that the external script file must be written in the same script language as the event handler script. FinalBuilder provides sample scripts to do things such as restart IIS, shut down COM+ components, etc.
You can also use FinalBuilder variables in the path, for example : 'USEUNIT "%SCRIPTPATH%\Test.vbs"
Note that this is the only time you would use the %variable% syntax for FinalBuilder variables in the script editor, as the useunit line is preprocessed before the script is run.
Custom Action Studio Script Actions
Entire action types can be written in Action Studio for inclusion in FinalBuilder.
PowerShell documentation can be found at the Windows PowerShell site:
Information about IronPython can be found at the IronPython home page on Codeplex: