Use PowerShell to pull JSON from the clipboard, convert it to PowerShell functions and then auto-paste into an ISE file.
To install in your personal modules folder (e.g. ~\Documents\WindowsPowerShell\Modules), run:
iex (new-object System.Net.WebClient).DownloadString('https://raw.github.com/dfinke/PasteJSONasPowerShell/master/Install.ps1')