Automation execute power shell script on a Windows 10 machine?

Does anyone know how you can have an automation execute a power shell script on a Windows 10 machine?