I recently started explore GitHub workflows system on my litle project. It creates WireGuard configs automatically, so it execute powershell command genkey with wg.exe. On my PC(Windows 11) it works perfectly, but in GitHub(windows-latest) it cannot call wg.exe with this error: Error text: wg.exe: D:\a\_temp\ae4190e7-b6d1-448e-8238-0af82213defe.ps1:4 Line | 4 | wg.exe genkey | Tee-Object server_keys/test0_private.key | wg.exe pub … | ~~~~~~ | The term 'wg.exe' is not recognized as a name of a cmdlet, function, script file, or executable program. Check | the spelling of the name, or if a path was included, verify that the path is correct and try again. Error: Process completed with exit code 1. Here I manualy tried to create keys, but it same while executing in Python code. Then I changed to .\wg.exe in manual call and it worked, but same didn't work to Python execusion. I'm downloading WireGuard in workflow, I now that it creates diffrent copy of WireGuard, but if it can make any sense: Invoke-WebRequest -Uri "https://download.wireguard.com/windows-client/wireguard-installer.exe" -OutFile ".\wireguard-installer.exe" Start-Process -FilePath '.\wireguard-installer.exe' Here Python command code for genkey. I'm using subprocess librery to execute: def _gen_server_keys(self): command = f"cd \"{self.path}\" | .\\wg.exe genkey | " \ f"Tee-Object \"server_keys\\{self.name + '_privet.key'}\" | " \ f".\\wg.exe pubkey | " \ f"Tee-Object \"server_keys\\{self.name + '_public.key'}\"" self._execute_command(command) @staticmethod def _execute_command(command): completed_process = subprocess.run( ["powershell.exe", "-Command", command], capture_output=True, text=True, ) print(completed_process.stderr) return completed_process Aslo here workflow action and GitHub repository. wg.exe locates at tests/WireGuard. Thanks. Continue reading...