A collection of useful, high-quality PowerShell modules for automation and productivity.
- psdict - DICT protocol client.
- Start-ForegroundProcess - Force windows to the foreground.
- Set-ClipboardFile - Copy actual files to the clipboard.
- GitBinProxy - Proxy Git's GNU utilities.
- New-ScoopShim - Create Scoop-style command shims.
- Testing
- Credits
- License
A pure PowerShell client for the DICT protocol (RFC 2229). It allows you to query dictionary servers (like dict.org) directly from your command line without any external dependencies.
Features:
- No dependencies: Uses .NET
TcpClientdirectly. - Interactive: If a word isn't found in the default database, it offers a list of other available databases.
- Scriptable: easy to integrate into other scripts.
Usage:
# Simple lookup
psdict "automation"
# List available databases
psdict -ListAvailableDatabases
# Search in a specific database
psdict "kernel" -Database "jargon"A robust utility to launch processes and forcefully bring them to the foreground. This solves the common issue where automated scripts launch windows that get stuck behind other applications.
Features:
- Window Focus: Uses Win32 APIs (P/Invoke) to attach to the process and force it to the top.
- Output Capture: Correctly captures
stdoutandstderrfrom the process, which usually gets lost when using complexStart-Processconfigurations. - Wait Support: Can wait for the process to exit, just like
Start-Process.
Usage:
# Launch Notepad and force it to the front
Start-ForegroundProcess -FilePath "notepad.exe"
# Run a command, wait for it, and capture output
Start-ForegroundProcess -FilePath "cmd.exe" -ArgumentList "/c echo Hello" -WaitA utility to set actual files to the Windows clipboard so they can be pasted into File Explorer, emails, or other applications.
Features:
- Actual File Copy: Unlike
Set-Clipboard(which copies the text of a path), this copies the file object itself (FileDropList). - Explorer Integration: Files behave exactly like files copied from within Explorer (Ctrl+C).
- Batch Support: Copy multiple files at once using wildcards or the pipeline.
- Alias:
scbf(specifically for Files, differentiating fromscbforSet-Clipboard). - Detailed Output: Lists the files copied by default (use
-Quietto suppress).
Usage:
# Copy a single file
Set-ClipboardFile -Path "C:\MyFolder\Report.pdf"
# Copy all images, listing them as they are copied
scbf *.jpg
# Copy silently
scbf *.png -Quiet4. GitBinProxy
A lightweight PowerShell module that proxies the GNU utilities included with Git for Windows (like sed, awk, grep, ls, etc.) into a single command: gbin.
A utility to create Scoop-style shims and binary pairs. It allows you to create global aliases for any executable with predefined arguments, leveraging the Scoop shim architecture.
A test script is included in tests/Test-Comparison.ps1 to verify the behavior of Start-ForegroundProcess against standard PowerShell commands.
The core logic for Set-ClipboardFile was adapted from a Stack Overflow answer by Eric Eskildsen, licensed under CC BY-SA 4.0.
This project is licensed under the MIT License.