project.WixExtensions.Add(...);
Though if you just want to run some script on the target OS then with Wix# you can execute a managed action or even an external C# file. This represents opportunities similar but arguably even greater than PowerShell.
project.WixExtensions.Add(...);