I am writing an AWS SSM document and using PowerShell as a scripting language. My task is to execute a PowerShell script with parameters from the AWS SSM document and store the output of the executed PowerShell script in a variable.
I have already searched and got a couple of links but could not find the exact answer.
Please share any thoughts or any links.
Note: I am completely new in AWS and powershell