#!/usr/bin/env pwsh <# .SYNOPSIS Resets the Module 05 challenge environment. .DESCRIPTION This script removes the challenge directory and re-runs the setup script to give you a fresh start. #> Write-Host "`n=== Resetting Module 05 Challenge ===" -ForegroundColor Cyan # Remove challenge directory if it exists if (Test-Path "challenge") { Write-Host "Removing existing challenge directory..." -ForegroundColor Yellow Remove-Item -Recurse -Force "challenge" Write-Host "Challenge directory removed." -ForegroundColor Green } else { Write-Host "No challenge directory found to remove." -ForegroundColor Yellow } # Run setup script Write-Host "`nRunning setup script..." -ForegroundColor Cyan & "./setup.ps1"