Switch hardcoded postbuild for powershell to dynamic

The post build script had a hardcoded reference to /Debug that broke the script when building for any other config.