# move to the next Excel rows by 1 $excelWorksheetRow = $excelWorksheetRow + 1 }}Else{ # Checking user input and displaying a warning if no proper syntax was used Write-host "`nPath was not found, or no parameter was used.`nPlease run: Get-Help Get-LastReboot" -ForegroundColor Yellow}

<# .SYNOPSIS View the last time a computer was rebooted.

.DESCRIPTION This script will display the last time the computer was rebooted. The script will require one parameter, the path to the text file containing the list of computer names.