Miscellaneous PowerShell scripts for everyday utility tasks.
- PowerShell 7+
Speak-Text.ps1requires Windows with theSystem.Speechassembly (not available on Linux/macOS)
Fetches and displays the current weather for your location using the free wttr.in service.
Get-WeatherInfo.ps1The weather information is shown in a text-based format directly in the terminal. No API key is required — wttr.in automatically detects your location from your IP address.
Example output:
Weather report: Berlin, Germany
\ / Sunny
.-. +20(18) °C
― ( ) ― ↗ 15 km/h
`-' 10 km
/ \ 0.0 mm
Uses the .NET System.Speech.Synthesis.SpeechSynthesizer class to speak provided text aloud through your system's audio output.
⚠️ Windows only — requires theSystem.Speechassembly which is only available on Windows.
Speak-Text -Text "Hello, World!"
Speak-Text -Text "The deployment has completed successfully."📖 System.Speech.Synthesis namespace
Tests are in the tests/ folder and use Pester.
Invoke-Pester -Path ./tests/Random.Tests.ps1 -Output DetailedTests validate syntax, parameter definitions, help content, and script content patterns. Network calls are not made during tests.