writing powershell script to execute cmd command code example Example: cmd run powershell command powershell -ExecutionPolicy Bypass -Command "your script here"