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' }
}
}