File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -354,6 +354,20 @@ function Invoke-OpenClawCommand {
354354 & $commandPath @Arguments
355355}
356356
357+ function Invoke-InteractiveOpenClawCommand {
358+ param (
359+ [Parameter (ValueFromRemainingArguments = $true )]
360+ [string []]$Arguments
361+ )
362+
363+ $commandPath = Get-OpenClawCommandPath
364+ if (-not $commandPath ) {
365+ throw " openclaw command not found on PATH."
366+ }
367+
368+ $null = Start-Process - FilePath $commandPath - ArgumentList $Arguments - NoNewWindow - Wait - PassThru
369+ }
370+
357371function Resolve-CommandPath {
358372 param (
359373 [Parameter (Mandatory = $true )]
@@ -875,7 +889,7 @@ function Main {
875889 } else {
876890 Write-Host " Starting setup..." - ForegroundColor Cyan
877891 Write-Host " "
878- Invoke-OpenClawCommand onboard
892+ Invoke-InteractiveOpenClawCommand onboard
879893 }
880894 }
881895
You can’t perform that action at this time.
0 commit comments