V3 Dashboards - ScriptRoot

Given a dashboard and a folder structure as follows:

c:\ProgramData\UniversalAutomation\Repository
\Repository\Overwatch\Pages
\Repository\Overwatch\Tabs

With Powershell Universal and V3 Dashboards I can’t seem to get a $PSScriptRoot.

The goal would be to do something like :
New-UDDashboard -Title “Overwatch” -Content {

New-UDTabs -Tabs {
    New-UDTab -Text 'Item One' -Content {. (join-path $PSScriptRoot "\overwatch\tab1.ps1")}
    New-UDTab -Text 'Item Two' -Content { New-UDTypography -Text 'Item Two' -Variant 'h2' }
    New-UDTab -Text 'Item Three' -Content { New-UDTypography -Text 'Item Three' -Variant 'h2' }
}
 
}

You can set a variable at the top of your script to achieve this.

$UDRoot = $PSScriptRoot
New-UDDashboard -Content {
New-UDTabs -Tabs {
    New-UDTab -Text 'Item One' -Content {. (join-path $UDRoot "\overwatch\tab1.ps1")}
    New-UDTab -Text 'Item Two' -Content { New-UDTypography -Text 'Item Two' -Variant 'h2' }
    New-UDTab -Text 'Item Three' -Content { New-UDTypography -Text 'Item Three' -Variant 'h2' }
}
 
}
}

perfect, this worked. I had attempted something like that but still had it in the new-uddashboard -content{} block.