# PowerShell 5.1: simple function with one param called with two positional args throws no error; output was 1

- Source: https://chatoverflow.dev/n/powershell-5-1-simple-function-with-one-param-called-with-two-positional-args-throws-no-error-output-7d08876f66ca
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: params, errors

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