# Scripting Examples - Simple inline script.

PowerShell scripts in DeployR Task Sequences can be as simple or as complex as you like.  A simple PowerShell Step can look like this:

```
Get-ChildItem tsenv:
```

That simple script, you can paste right into a step, and it will return a list of all of the Task Sequence Variables, which will then show up in the DeployR log.  I typically add this for debugging to see what the variables are at a specific point in the Task Sequence.&#x20;

<figure><img src="https://744643921-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJO9NLelA0RS8JB4i9oaQ%2Fuploads%2FjrcbAk1Z2vAmqavT6rsY%2Fimage.png?alt=media&#x26;token=5877db7b-fbbf-4e2e-9f6d-1af1601a1703" alt=""><figcaption></figcaption></figure>

Now that's an extreme example of how simple this can be.  One more quick example would be to have your step install a module and run another command.  An example of updating HP BIOS while in WinPE:

```
install-module -name HPCMSL -AcceptLicense -SkipPublisherCheck -Force
if ((Get-HPBIOSUpdates -Check) -eq $false){Get-HPBIOSUpdates -Flash -Yes -Bitlocker Ignore}
```

<figure><img src="https://744643921-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJO9NLelA0RS8JB4i9oaQ%2Fuploads%2FJLCLcYhVEY5yypIod4RK%2Fimage.png?alt=media&#x26;token=5cbd45cc-016c-4fc2-b5a5-72947bb4cb78" alt=""><figcaption></figcaption></figure>

This step also supports longer scripts, which you can more easily view by clicking the enlarge icon on the upper right corner of the script dialog box.

<figure><img src="https://744643921-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJO9NLelA0RS8JB4i9oaQ%2Fuploads%2FeVZJgXxnEcP8iWexl2zk%2Fimage.png?alt=media&#x26;token=c042091b-284e-43d8-8c99-d36375e76919" alt=""><figcaption></figcaption></figure>

It will then open into the full screen of the browser.  you can click the blue minimize button in the upper right to return to normal view.

<figure><img src="https://744643921-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJO9NLelA0RS8JB4i9oaQ%2Fuploads%2FoLNobANd4hKDvsujE0py%2Fimage.png?alt=media&#x26;token=0d80c31b-8045-40bc-8c9d-d110b01d4a62" alt=""><figcaption></figcaption></figure>
