I’ve seen a lot of information about how to run a PowerShell script from inside a BAT file, but most seem very outdated, using the “&” (ampersand) character together with a difficult to remember set of single and double quotes. For me at least, the simple answer is something like the following, where we assume parameters are passed into the BAT file via the usual method, via %1, %2, etc.
PowerShell.exe -file c:\someplace\someScript.ps1 %1 %2
Very easy. No convoluted &. No complex double-quote characters surrounding single-quoted values. I hope this helps others who, for whatever reason, have to call a PowerShell script from inside a BAT or CMD file.