Installing PowerShell 7 and VS Code
Raspberry Pi OS is a Linux distro based on Debian, the same as Ubuntu, so the Ubuntu instructions we followed in Chapter 14, PowerShell 7 for Linux and macOS, will work, but there’s an even easier way to do it.
Installing PowerShell
If we go to the Community support for PowerShell on Linux page at https://learn.microsoft.com/en-us/powershell/scripting/install/community-support, we’ll find a very handy script that will install PowerShell for us, as shown in the following screenshot:
Figure 15.1 – The Raspberry Pi OS install script
If we click the Copy button in the top-right corner of the script box, then we can simply open a terminal window on the Raspberry Pi and right-click to paste it into the terminal, as shown here:
Figure 15.2 – Installing PowerShell by pasting the script into the terminal
Once we’ve pasted it, all we have to do is press Enter...