Don’t copy and paste the same code over and over again. Instead, create a PowerShell function and save yourself time.
We will explain the following methods to install and uninstall Windows PowerShell ISE: Installing PowerShell ISE via Windows Optional Features. Uninstalling PowerShell via Windows Optional features.