
Automation Workshop includes the Execute Script Action which, besides supporting other scripting formats, can execute PowerShell scripts automatically. The PowerShell examples are aimed at giving the user a general idea of 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 using the Variable Wizard from a subsequent Execute Script Action. It is possible to retrieve either the 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
Note
- For PowerShell scripts using Unicode, it is recommended to use the version 1.0 or 2.0 option instead of Default (see the Options tab to change the PowerShell version).
Discover
Automation Workshop includes many more awesome Triggers and numerous Actions to aid you to automate any repetitive computer or business task by providing state-of-the-art GUI tools.
Need help?
If you have any questions, please do not hesitate to contact our support team.