function funGetProcess()
{
if($args)
{
Get-Process | Format-Wide -AutoSize
}
else
{
Get-Process | Format-Wide -Column $i
}
}
cls
$i=1
for($i;$i -le 10;$i++)
{
Write-Host -ForegroundColor Red "`$i is equal to $i"
funGetProcess
}
Write-Host -ForegroundColor Red "Now use Format-wide -autosize"
funGetProcess("auto")