sorry error I am getting is
At C:\Users\jsmith484\Documents\PowershellScripts\hostdatquery.ps1:29 char:26
+ $row = "Time on" $_.Name "within allowed range"
+ ~~
Unexpected token '$_' in expression or statement.
At C:\Users\jsmith484\Documents\PowershellScripts\hostdatquery.ps1:29 char:34
+ $row = "Time on" $_.Name "within allowed range"
+ ~~~~~~~~~~~~~~~~~~~~~~
Unexpected token '"within allowed range"' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParseException
+ FullyQualifiedErrorId : UnexpectedToken