PS D:\Lab Scripts> Get-VM | Stop-VM
PS D:\Lab Scripts> Get-VM | Checkpoint-VM -SnapshotName "Base"
PS D:\Lab Scripts> Get-VM | GET-VMSnapshot –Name "Base" |
RESTORE-VMSnapshot –confirm:$False
RESTORE-VMSnapshot –confirm:$False
PS D:\Lab Scripts> Get-VM | Start-VM
For a little more information about what is going on, Get-VM gets a list of the VMs on the machine and the pipe ( | ) passes the list as arguments to the next command. I will leave the rest of the commands for you to look up, assuming they aren't perfectly obvious.