For parameter if I am passing an object, is it possible to pass it as reference For example
param(
[Parameter(Mandatory=$true)]
[Object]$vmDetail,
[Parameter(Mandatory=$true)]
[Object]$VM
)
Here if I want to do, will it hold good in case parameter is object
param(
[Parameter(Mandatory=$true)]
[ref]$vmDetail,
[Parameter(Mandatory=$true)]
[ref]$VM
)