if ($IsWindows) { $python = (Get-Command py).Source } else { $python = (Get-Command python3).Source } $command = @("${env:HOME}/craft/CraftMaster/CraftMaster/CraftMaster.py", "--config", "${env:GITHUB_WORKSPACE}/.craft.ini", "--target", "${env:CRAFT_TARGET}", "--variables", "WORKSPACE=${env:HOME}/craft") + $args Write-Host "Exec: ${python} ${command}" & $python @command