Here is the solution for you.Run the commands on powershell.
Set-AWSCredentials –AccessKey key-name –SecretKey key-name
Set-DefaultAWSRegion -Region us-east-2 Get-SSMDocumentList Get-SSMDocumentList Get-SSMDocumentDescription
-Name "AWS-RunPowerShellScript"
Get-SSMDocumentDescription -Name "AWS-RunPowerShellScript" | Select -ExpandProperty Parameters $runPSCommand = Send-SSMCommand
-InstanceIds @("instance-ID-1", "instance-ID-2") -DocumentName "AWS-RunPowerShellScript"
-Comment "Demo AWS-RunPowerShellScript with two instances" -Parameter @{'commands'=@('dir C:\Users', 'dir C:\')} Get-SSMCommand
-CommandId $runPSCommand.CommandId
Get-SSMCommandInvocation -CommandId $runPSCommand.CommandId Get-SSMCommandInvocation
-CommandId $runPSCommand.CommandId -Details $true
-InstanceId instance-ID | Select -ExpandProperty CommandPlugins
Get-SSMDocumentDescription -Name "AWS-InstallApplication" Get-SSMDocumentDescription
-Name "AWS-InstallApplication" | Select -ExpandProperty Parameters
$installAppCommand = Send-SSMCommand -InstanceId instance-ID
-DocumentName "AWS-InstallApplication" -Parameter @{'source'='https://www.python.org/ftp/python/2.7.9/python-2.7.9.msi'; 'parameters'='/norestart /quiet /log c:\pythoninstall.txt'} Get-SSMCommandInvocation
-CommandId $installAppCommand.CommandId -Details $true Get-SSMCommandInvocation
-CommandId $installAppCommand.CommandId -Details $true
-InstanceId instance-ID | Select -ExpandProperty CommandPlugins
$installPSCommand = Send-SSMCommand -InstanceId instance-ID
-DocumentName "AWS-InstallPowerShellModule" -Parameter @{'source'='https://gallery.technet.microsoft.com/EZOut-33ae0fb7/file/110351/1/EZOut.zip';'commands'=@('Add-WindowsFeature -name XPS-Viewer -restart')}
-OutputS3BucketName demo-ssm-output-bucket
Get-SSMCommandInvocation -CommandId $installPSCommand.CommandId
-Details $true