Monorepo for Aesthetic.Computer
aesthetic.computer
1#!/usr/bin/env fish
2# Execute commands on Windows host via SSH
3# Usage: windows-exec.fish "powershell command here"
4
5if test (count $argv) -eq 0
6 echo "Usage: windows-exec.fish \"command\""
7 echo ""
8 echo "Examples:"
9 echo " windows-exec.fish 'dir C:\\'"
10 echo " windows-exec.fish 'powershell.exe -Command \"Get-Process\"'"
11 echo " windows-exec.fish 'powershell.exe -File C:\\path\\to\\script.ps1'"
12 exit 1
13end
14
15# Execute command on Windows host
16ssh windows-host $argv