How can I pass an argument to a PowerShell script?

Tested as working: #Must be the first statement in your script (not counting comments) param([Int32]$step=30) $iTunes = New-Object -ComObject iTunes.Application if ($iTunes.playerstate -eq 1) { $iTunes.PlayerPosition = $iTunes.PlayerPosition + $step } Call it with powershell.exe -file itunesForward.ps1 -step 15 Multiple parameters syntax (comments are optional, but allowed): <# Script description. Some notes. #> param ( … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)