# Hello world using Powershell
schemaVersion: '0.3'
description: |-
    **An example of an Automation document using "`aws:executeScript`" with a Powershell script.**

    *You can use Markdown to format the description.*

    ---
    # What is Markdown?
    Markdown is a lightweight markup language that converts your content with plain text formatting to structurally valid rich text.
    ## You can add headings
    You can add *italics* or make the font **bold**.  
    1. Create numbered lists 
    * Add bullet points 
    >Indent `code samples` 

    You can create a [link to another webpage](https://aws.amazon.com/).
parameters:
    Name:
        type: String
        description: Input name parameter.
        default: World
mainSteps:
    - name: helloWorld
      action: aws:executeScript
      description: Executes a Powershell script
      inputs:
          Runtime: PowerShell Core 6.0
          InputPayload:
              Name: '{{ Name }}'
          Script: |-
              Write-Host 'hello world';
              $inputPayload = $env:InputPayload | ConvertFrom-Json;
              $inputName = $inputPayload.Name;
              return @{Message="Hello $inputName"}
      timeoutSeconds: 30
      outputs:
          - Name: Message
            Selector: $.Payload.Message
            Type: String
outputs:
    - helloWorld.Message
