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 Options 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 · Amazon S3 Watcher
    Amazon S3 Watcher
    Automate action · Print File
    Print File

    Need help?

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