Random adventures in PowerShell