Función para escritura de logs en PWS
####### Log Function #######
$log = $args.Trim("https://")
$Logfile = $log.Trim('.com','.co')
Remove-Item $Logfile
Function LogWrite
{
Param ([string]$logstring)
Add-content $Logfile -value $logstring
}
####### USE:: Replace write-host with LogWrite