---
title: "PowerShell_5.1 AWSPowerShell.Netcore_4.1.3.0"
slug: "powershell-51-awspowershellnetcore-4130"
updated: 2024-09-10T21:38:41Z
published: 2024-09-10T21:38:41Z
canonical: "docs.skillable.com/powershell-51-awspowershellnetcore-4130"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.skillable.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PowerShell_5.1 AWSPowerShell.Netcore_4.1.3.0

Skillable Studio allows execution of scripts against a cloud subscription, as well as executing scripts that do not have a target. Scripts are used in Automated Activities and Life Cycle Actions.

**This is a legacy script execution environment.**

## Interacting with Skillable Studio

Your scripts can communicate success or failure to Skillable Studio in one of two ways.

### Return a Boolean value

```PowerShell
//do stuff... all good
return true
```

```PowerShell
//do stuff... uh oh
return false
```

### Use setActivityResult

```PowerShell
//do stuff... all good
Set-ActivityResult -Correct
```

```plaintext
//do stuff... uh oh
Set-ActivityResult -Incorrect
```

You can also report the result as a score percentage...

```PowerShell
//do stuff... we want to report success and set the score value as 50%
Set-ActivityResult -Score .5
```

### Send a Notification to the User

Notifications appear as real-time toast notification in the lab client.

```PowerShell
Send-LabNotification -Message "Hello from a script"
```

### Lab Variables

Lab variables are always string name/value pairs. Variable values are scoped to the lab instances and become available within the lab instructions as well as subsequent script executions.

```PowerShell
Set-LabVariable -Name firstName -Value John
```

You can "receive" a variable in your script...

```PowerShell
#a variable set elsewhere in the lab, but we can use it in our script
$myVariable1 = "@lab.Variable(myVariable1)"
```
