Windows cmd
(se a área de transferência contiver dados de texto):
Powershell -command Add-Type -AssemblyName System.Windows.Forms;[System.Windows.Forms.Clipboard]::GetText()
Exemplo mostra que o comando acima adiciona dois bytes à saída ( Cr e Lf ):
==> >1049363a.txt echo first line
==> >>1049363a.txt echo 2nd line
==> clip<1049363a.txt
==> >1049363b.txt Powershell -command Add-Type -AssemblyName System.Windows.Forms;[System.W
indows.Forms.Clipboard]::GetText()
==> findstr /N "^" 1049363*.txt
1049363a.txt:1:first line
1049363a.txt:2:2nd line
1049363b.txt:1:first line
1049363b.txt:2:2nd line
1049363b.txt:3:
==> dir 1049363*.txt |find ".txt"
06.03.2016 17:24 22 1049363a.txt
06.03.2016 17:24 24 1049363b.txt
==>
Leia mais sobre o .NET Framework Métodos de classe da área de transferência.
Editar responde ao tópico estendido (salvar imagem, cf. Classe ImageFormat ):
Add-Type -AssemblyName System.Windows.Forms ### not necessary in PowerShell_ISE
if ($([System.Windows.Forms.Clipboard]::ContainsImage())) {
$image = [System.Windows.Forms.Clipboard]::GetImage()
$filename='d:\test\test.png' ### edit to fit in your circumstances
[System.Drawing.Bitmap]$image.Save($filename,
[System.Drawing.Imaging.ImageFormat]::Png)
Write-Output "clipboard content saved as $filename"
} else {
Write-Output "clipboard does not contains image data"
}