Remove-Item -Path $Path -Force Write-Host "🗑️ Removed: $Path" -ForegroundColor Yellow switch ($Action) "Create" if (-not $LinkPath -or -not $TargetPath) Write-Host "Usage: -Action Create -LinkPath <path> -TargetPath <path> [-Directory] [-Junction] [-Relative]" return
if (-not (Test-Path $Target)) Write-Error "Target does not exist: $Target" return symbolic link in windows
$item = Get-Item -Path $Path -Force if ($item.LinkType -notin @("SymbolicLink", "Junction")) Write-Error "Not a symlink or junction: $Path" return symbolic link in windows