Get-childitem -recurse -file | Unblock-file //top\\ -
if ($Confirm -and $blockedFiles.Count -gt 0) $response = Read-Host "Unblock these $($blockedFiles.Count) files? (Y/N)" if ($response -ne 'Y') return
[Parameter(Mandatory=$false)] [switch]$Confirm ) get-childitem -recurse -file | unblock-file
param( [Parameter(Mandatory=$false)] [string]$Path = ".", [Parameter(Mandatory=$false)] [switch]$WhatIf, if ($Confirm -and $blockedFiles