Windows PowerShell is a task-based command-line shell and scripting language designed especially for system administration. Built on the .NET Framework, Windows PowerShell helps IT professionals and power users control and automate the administration of the Windows operating system and applications that run on Windows.
We begin by installing the necessary dependencies, most of which should already be installed in your Kali installation by default.
Next, we need to download and add the public repository GPG key so APT will trust the packages and alert you to any issues with package signatures.
With the GPG key added, we proceed to add the Microsoft package repository to its own package list file under /etc/apt/sources.list.d/ and update the list of available packages.
Finally, we proceed to install the powershell package.