That would be the most basic example. There are many different ways of improving it tho. If you need different credentials you can feed them via -Credentials $Credentials if you store them in $credentials=Get-Credentials or from the secure store from your machine, you could set multiple computer names in an object and use that, importing them from an array or a text file or by getting them from AD itself, you could skip the FilePath alltogether and feed the Script directly by using -ScriptBlock {$Script} or -ScriptBlock {Restart-Computer} and so on.