If i'm following correctly what you're trying to do you would use the command action, not installer.
Using the below command.
Powershell.exe -executionpolicy bypass -file "{PackageShare}\copy.ps1"
This will run the referenced ps file on the remote computer.