The specified file appears to be a SharePoint solution. This command is used to retract Web Part packages only. Use the retractsolution ...

The specified file appears to be a SharePoint solution. This command is used to retract Web Part packages only. Use the retractsolution command to retract SharePoint solutions.