# Navigate to the KMSPico directory cd $kmspicoDir
Here is an example PowerShell script that uses KMSPico to activate Windows: kmspico powershell
.\KMSPico.exe /act This command will activate Windows using the KMSPico tool. # Navigate to the KMSPico directory cd $kmspicoDir