1. Launch PowerShell 7 from the Start menu
Click on the start button and then expand thePowerShell folder and launch PowerShell 7 elevated.
2. Import module
Import the ActiveDirectory Module by running the command: Import-Module ActiveDirectory
3. Run Command
Type in the commands you would normally use into the window.