how to run a powershell function from command line code example Example: cmd run powershell command powershell -ExecutionPolicy Bypass -Command "your script here"