You might use something like this with Read-Host. PS C:\> $c = Read-host "Enter the name of a wmiclass" Enter the name of a wmiclass: win32_service There's no ...