Closed
Description
Hi,
it would be nice to be able to create a splatting command, f.e selecting the long command -> right click -> create splatting command
Before:
Get-Process -Name explorer -ComputerName localhost -Verbose: $true -ErrorAction Stop
After the conversion it could look like this:
$params=@{
Name = "explorer"
Computername = "localhost"
Verbose = $true
ErrorAction = "Stop"
}
Get-Process @params
This is helpful if you have long commands and it makes it easier to read the code.
Thanks