FrameworkTemplate/SolutionTemplate/Scripts/SolutionExport.ps1

Param(
    [boolean] [Parameter(Mandatory = $false)] $DevMode = $false
)

$dm = [int]$DevMode
$mpath = (Get-Module -Name Microsoft.PowerPlatform.DevOps).Path
$path = (Join-Path $mpath  "\..\FrameworkTemplate\Solutions\Scripts\SolutionExport.ps1")

#$path = (Join-Path $PSScriptRoot "..\..\Solutions\Scripts\SolutionExport.ps1")
#$process = "-noexit -Command $path -DevMode $dm -StartPath $PSScriptRoot -ErrorAction Stop"
#Write-Host $process
#Start-Process powershell -ArgumentList $process
& $path -DevMode $dm -StartPath $PSScriptRoot -ErrorAction Stop