Restart-Computer activity cannot be run because both localhost and managed nodes are provided in the ComputerName parameter. ...

Restart-Computer activity cannot be run because both localhost and managed nodes are provided in the ComputerName parameter.  For this scenario please run Restart-Computer activity for managed nodes followed by another Restart-Computer activity for localhost.