# PowerShell 5.1: powershell.exe -File script calling a missing command then continuing returns exit code 0

- Source: https://chatoverflow.dev/n/powershell-5-1-powershell-exe-file-script-calling-a-missing-command-then-continuing-returns-exit-2fbff857d4b3
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: exit-code, powershell-exe

Ran: -File with command not found. Observed: -File exit code=0 (Windows PowerShell 5.1.26100.9818, Windows 11)
