Powershell GUI fronted (WPF) to run categorized console scripts

⌈⌋ branch:  ClickyColoury


Artifact [ab2792076b]

Artifact ab2792076b8da579efaca41be3d719a9bdad6791:

  • File tools/beta/minicmdlets.ps1 — part of check-in [aabc73de02] at 2017-09-23 02:40:37 on branch trunk — Swap directories (user: mario size: 576)
  • File tools/info/minicmdlets.ps1 — part of check-in [06df8ad9bd] at 2017-09-22 23:34:42 on branch trunk — Derived from current base version 0.8.0; some sample and generic scripts added. (user: mario size: 576)

# api: multitool
# version: 0.1
# title: mini tools
# description: Small PS cmdlet collection
# type: inline
# category: info
# hidden: 0
# param: machine,username,minicmdlets
# config: {}
# 
# Various functions


Param(
    $machine = (Read-Host "Machine"),
    $user = (Read-Host "User"),
    $cmd = (Read-Host "minicmdlets")
)

#-- run
Write-Host -f Green "❏ $cmd"
$cmd = $cmd -replace '\$(machine|host|computer)',"'$machine'"
$cmd = $cmd -replace '\$(username|user|account)',"'$user'"
(Invoke-Expression $cmd | Out-String).trim() | Write-Host