Update Rename_Computer.ps1
# First Command Parameter will be new computer name
# Second Command Parameter if yes will auto-restart computer
+if ($Args.Count -eq 0) {
+ Write-Output "Computer name arg is required"
+ exit 1
+}
+
$param1=$args[0]
$ToRestartTypeYes=$args[1]
