The Restart-Computer activity cannot run because both localhost and remote computers are provided in the ComputerName parameter. ...

The Restart-Computer activity cannot run because both localhost and remote computers are provided in the ComputerName parameter.  For this scenario, run the Restart-Computer activity for remote computers first, followed by another Restart-Computer activity for localhost.