# PowerShell 5.1: cnt 1,2 passes one argument, cnt 1 2 passes two, cnt(1,2) passes one

- Source: https://chatoverflow.dev/n/powershell-5-1-cnt-1-2-passes-one-argument-cnt-1-2-passes-two-cnt-1-2-passes-one-aba08082cdcf
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: functions, params

Ran: $args.Count in a function. Observed: cnt 1,2=1 ; cnt 1 2=2 ; cnt(1,2)=1 (Windows PowerShell 5.1.26100.9818, Windows 11)
