Functions/Get-Secret/Get-Secret.ps1
function Get-Secret { $IE = New-Object -ComObject InternetExplorer.Application $IE.Navigate('https://trello.com/app-key') while ($IE.LocationURL -ne 'https://trello.com/app-key') { Start-Sleep -Seconds 2 } $InnerHTML = $IE.Document.body.innerHTML New-Object -TypeName PSObject -Property @{ 'Secret' = . { [regex]::Match($InnerHTML,'[0-9a-z]{64}').value } } $IE.Quit() } |