Greetings,
I have a powershell script which contains various functions, one of which is used to uninstall software. The command line to invoke this from a DOS batch file is as follows:
powershell.exe -executionpolicy bypass-command "& { .'%~dp0Install_App.ps1'; UninstallApp }"
I have looked for a Winbatch example which describes how to do this but could not find one. I then thought of just invoking Powershell using Runwait (or something similar) but could not figure out how to format the bolded string section so Winbatch would accept it.
Any help would be appreciated.