Make .bat file work with powershell as well as cmd

In powershell, %0 drops in the full path to the file, so we use %~n0 to just drop in the filename portion. This works in both powershell as well as cmd