Microsoft Powershell
1) Download the package that contains the apt repo configuration for packages.microsoft.com and the public GPG key.
2) Register the Microsoft repository keys installing that package.
3) Update repositories and install Powershell.
4) Execute Powershell.
su -
wget https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb
dpkg -i packages-microsoft-prod.deb
apt-get update && apt-get install -y powershell
[ctrl + d]
pwsh
Microsoft Visual Studio Code
The easiest way to install Visual Studio Code for Debian/Ubuntu based distributions is to download and install the .deb package (64-bit), installing it will automatically install the apt repository and signing key to enable auto-updating.
Links
https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-linux?view=powershell-7.1
https://code.visualstudio.com/docs/setup/linux
https://docs.microsoft.com/en-us/powershell/