Use PowerShell to operate the Windows clipboard.
Command Reference
Read Clipboard
Get-Clipboard
Write to Clipboard
Set-Clipboard -Value "要复制的内容"
Copy from File to Clipboard
Get-Content "C:\path\to\file.txt" | Set-Clipboard
Output Specification
- Display content after reading (long text truncated to the first 500 characters)
- Confirm "Copied to clipboard" after writing