Example: Stateful test

Previous Next

Here is an example which demonstrates the statefulness of the PowerShell component

INVOKE USPowershell.ExecuteScript

WITH

SELECT '$mymsg = "Hello World, I''m stateful." ';

 

INVOKE USPowershell.ExecuteScript

WITH

SELECT 'Write-Output $mymsg'

This results in:

Hello World, I'm stateful.

 

See also

Example: Simple script execution

Example: Script execution with paramaters

Example: Dynamically Adding C#

Example: Converting Word to PDF

Example: Query call to the Rules Engine

Example: Manipulation call to the Rules Engine

Example: Call to the Rules Engine with variables

Example: Query call to the Rules Engine and loop through result

USPowerShell