You'd have to edit the WiseScript yourself. You can specify different Deploy-Application.ps1 scripts but not what you're looking for.
For the repair, you can use Get-InstalledApplication to get the product code of existing app and Execute-MSI function to run repair.
For the repair, you can use Get-InstalledApplication to get the product code of existing app and Execute-MSI function to run repair.