Parameters

Remember our conversation about Indicator state of a Car on following page?
https://atomic-temporary-208564200.wpcomstaging.com/object

Well, if you want to turn to Left, it should be Indicator(Left).
“Left” in this case which is mentioned in (Brackets) are called Parameter.

So, how will you get a Car to turn left indicator?
1. Get an object of a CAR
2. Call Function for Indicator
3. Pass Left as Parameter

$MyCar=New-Object Car

$MyCar.Indicator(Left)

PowerShell Parameter : A Complete Guide (adamtheautomator.com)

Leave a comment

I’m Bindusar

Welcome to BINLABS, my cozy corner of the internet dedicated to IT admins and their daily encounter. Here, I invite you to join me for daily challenges with solution faced by admins using scripts. Let’s script together!

Let’s connect