Execute Script & PowerShell

Automation Workshop includes Execute script Action which, besides supporting other scripting formats, can execute PowerShell scripts automatically. The PowerShell examples are aimed at giving the user a rather general idea how to streamline scripts into automated processes.

The data communication with other scripts is based on screen output. The screen output of the script can be retrieved by using Variable Wizard from subsequent Execute script Action. It is possible to retrieve either full screen output or any of the first six output lines separately.

PowerShell #1

$text = "Hello world!"
Write-Host $text

PowerShell #2

[Console]::OutputEncoding = [Text.Encoding]::Unicode
# Unicode is now enabled!

$text = "Hello wörld!"
$text = $text.ToUpper()

$insertthis = "Unicode "
$text = $text.Insert( 6 , $insertthis )

# Output: HELLO Unicode WÖRLD!
Write-Host $text

    Notes

      For PowerShell scripts using Unicode, it is recommended to use version 1.0 or 2.0 option instead of Default (see Script tab to change PowerShell version).

    Discover

    Automation Workshop includes many more awesome Triggers and numerous Actions to aid you automate any repetitive computer or business task by providing state-of-the-art GUI tools.

    Automated trigger · Task scheduler
    Task scheduler
    Automate action · Send email
    Send email

    Need a helping hand?

    If you have any questions, please do not hesitate to contact our support team.