diff --git a/Compile.ps1 b/Compile.ps1 index 80ca0729..e0f4c6d4 100644 --- a/Compile.ps1 +++ b/Compile.ps1 @@ -103,5 +103,11 @@ Set-Content -Path $scriptname -Value ($script_content -join "`r`n") -Encoding as Write-Progress -Activity "Compiling" -Completed if ($run){ - Start-Process -FilePath "powershell" -ArgumentList ".\$scriptname" + try { + Start-Process -FilePath "pwsh" -ArgumentList ".\$scriptname" + } + catch { + Start-Process -FilePath "powershell" -ArgumentList ".\$scriptname" + } + } \ No newline at end of file