Trying to make a cmdlet for the first time, all going pretty well so far (it's a simple one), but I'm using Write-Progress for the cmdlet working with multiple computer names. It works when I put a number of computers in its parameter, but if I pipe data to the cmdlet, it throws an error about the Write-Progress..
Powershell
functionGet-IEM{#Deleted help stuff for your convenience [CmdletBinding()]param([Parameter(Mandatory=$true,ValueFromPipeline=$true,HelpMessage="Enter one or more computer names separated by commas, or use a file containing a list of computer names.")][Alias("CN")][string[]]$ComputerName)BEGIN{$table=@()$i=0}PROCESS{foreach($Compin$ComputerName){Write-Progress-Activity"Checking Paths on $Comp"-Status"Computer $i of $($ComputerName.Count)"`-PercentComplete(($i/$ComputerName.Count)*...