> For the complete documentation index, see [llms.txt](https://infra.newerasec.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://infra.newerasec.com/infrastructure-testing/tools/pwsh.md).

# pwsh

Kali come with PowerShell installed already, to run it use:&#x20;

`root@kali:~# pwsh`&#x20;

**If not installed use:**&#x20;

```
apt update && apt -y install curl gnupg apt-transport-https 
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch main" > etc/apt/sources.list.d/powershell.list 
apt update 
apt install powershell 
```

**Example:**&#x20;

```
root@Kali:/opt/PowerUpSQL# pwsh 
PowerShell 6.2.2 
Copyright (c) Microsoft Corporation. All rights reserved. 
https://aka.ms/pscore6-docs 
Type 'help' to get help. 
PS /opt/PowerUpSQL> Import-Module .\PowerUpSQL.ps1  
PS /opt/PowerUpSQL>  
```
