'Uninstall VSTO plugin using batch file

I've to uninstall a vsto plugin. I'm using this command in powershell :

"C:\Program Files\Common Files\Microsoft Shared\VSTO\10.0\VSTOInstaller.exe" \Uninstall file:///C:/Users/username/source/repos/OutlookAddIn3/OutlookAddIn3/publish/OutlookAddIn3.vsto

This statement I copied from UninstallString in registry of this Add-in. But this gives following error in powershell :

At line:1 char:78
+ ... iles\Microsoft Shared\VSTO\10.0\VSTOInstaller.exe" \Uninstall "file:/ ...
+                                                        ~~~~~~~~~~
Unexpected token '\Uninstall' in expression or statement.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : UnexpectedToken

Can someone tell the correct way of using this command?

Edit 1: The cause of error was using \uninstall instead of /uninstall and as per the suggestion given by @Abraham Zinala, I added & before the command to make it run in PowerShell.

& "C:\Program Files\Common Files\Microsoft Shared\VSTO\10.0\VSTOInstaller.exe" /uninstall file:///C:/Users/username/source/repos/OutlookAddIn3/OutlookAddIn3/publish/OutlookAddIn3.vsto /silent

To make it work in using Batch file, just have to remove & previous command. The working command in batch file is :

"C:\Program Files\Common Files\Microsoft Shared\VSTO\10.0\VSTOInstaller.exe" /uninstall file:///C:/Users/username/source/repos/OutlookAddIn3/OutlookAddIn3/publish/OutlookAddIn3.vsto /silent


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source