function Itil
{
$_.Font = 'Microsoft Sans Serif, 8.25pt, style=Italic'
$_.Text = 'Double-click to add username'
$_.ForeColor = 'ScrollBar'
}
$Username10.Font = 'Microsoft Sans Serif, 8.25pt, style=Italic'
$Username10.Text = 'Double-click to add username'
$Username10.ForeColor = 'ScrollBar'
Is there a way to pass an object into a function without having to name the object itself?
In other words, rather than repeating the same last three lines of code for each $username (there are 10 username textboxes), I can call a function, with the name of the object and make the changes to that object?