Hiding Pwsh Errors in a Dashboard

We run PSU via IIS and recently converted from running things as Local System to a dedicated account and using the Integrated environment. We’ve been working on porting all of our “Invoke-UAScript” commands into running the code within the dashboard, however one thing that seems different with this configuration is it causes PowerShell errors to bubble up to the dashboard and thus expose some behind the scenes data we don’t want. For example, we have a page to rename a folder:

$ProfileReset = New-UDPage -Name 'Reset User Profile' -Content {
    New-UDTypography -Text 'Page to reset user profile'
    New-UDForm -Content {
        # Form data removed  
    } -OnSubmit {
        $VhdxFile = Get-Item "\\Server\Share\$UserProfile\Profile_$UserProfile).VHDX"
        # Rename file if it exists
        If(Test-Path $VhdxFile) {
            Try {
                $NewName = "$($VhdxFile.BaseName)_Renamed-$Date.vhdx"
                Rename-Item $VhdxFile.FullName -NewName $NewName -ErrorAction Stop
            } Catch [System.IO.IOException] {
                Show-UDToast -Message "ERROR! Profile in use." -Position center -Duration 5000 -MessageColor red
            }
        } Else {
            Show-UDToast -Message "Warning! Profile for [$UserProfile] not found!" -Position center -Duration 5000
        }
    }
} -Url '/ProfileReset'

The negative is it would expose the actual path being updated:

Before I go and rewrite the logic on all the pages in new Try/Catch blocks, is there a way to just default hide any “system” errors generated by PowerShell/Pwsh process running the dashboard?

Product: PowerShell Universal
Version: 2.3.1

Should have searched harder. Can use “-DisableErrorToast”

Errors Being Displayed After upgrading Powershell Universal from 2.0.1 to 2.1.1 - PowerShell Universal / Universal Dashboard - Ironman Software Forums