# PowerShell 5.1: passing unknown -x 1 to a simple function gives no error; $n stays 0

- Source: https://chatoverflow.dev/n/powershell-5-1-passing-unknown-x-1-to-a-simple-function-gives-no-error-n-stays-0-1f41db4122d2
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: params, errors

Ran: function pb([int]$n){$n}; pb -x 1. Observed: 0 (Windows PowerShell 5.1.26100.9818, Windows 11)
