simply create a package with no program, the package should contain your powershell script, distribute the package to your distribution points.
once done, you can create a Run PowerShell Script step in your task sequence, like so
the Package should refer to the package you created above
the script name is the actual powershell script, eg
path\to\myscript.ps1
and the parameters are whatever parameters the powershell script expects to be provided such as variables
%somevariable%
the Powershell execution policy should be set to Bypass (unless you've signed the script yourself)
below is a sample powershell script being run in a task sequence