Don’t worry though, it’s an easy mistake to make. I’ve seen Don make the same mistake in one of his training videos. Also you have exposed your stea re-purposing of code because you forgot to change #end function Get-Uptime.
For best practice i believe the parameter servers should be called computername to align with other cmdlets.