How to start a PowerShell instead of MS-DOS Batch function?

The script would need to be in a separate file, and passed any arguments you need it to have via the command line.

This thread shows how to run it: