:
$targetResolved = if ($UseRelative) $relativePath = Resolve-Path -Path $Target -Relative -RelativeBasePath $parent if (-not $relativePath) $Target else $relativePath else $Target symbolic link in windows
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 [-Directory] [-Junction] [-Relative]" return