Let me start with I am very new to powershell and programming for that matter. I have a powershell script that takes some arguments and that outputs a value.
The result of the script is going to be something like 9/10 where 9 would be the number active out of the total amount of nodes. I want to assign the output to a variable so I can then call another script based on the value. 

This is what I have tried, but it does not work:

```
$active = (./MyScript.ps1 lb uid **** site)  

```

I have also tried the following which seems to assign the variable an empty string

```
$active = (./MyScript.ps1 lb uid **** site | out-string)

```

In both cases they run and give me the value immediately instead of assigning it to the variable. When I call the variable, I get no data.