There's definitely something a little off with that script. On a 2012 R2 HV host I open PS as admin and tried to delete one VM named "OPMANAGER":
Windows PowerShell
Copyright (C) 2014 Microsoft Corporation. All rights reserved.
PS C:\Windows\system32> get-vm
Name State...