Issues calling a function

Welcome Forums General PowerShell Q&A Issues calling a function

This topic contains 1 reply, has 2 voices, and was last updated by

 
Participant
3 years, 11 months ago.

  • Author
    Posts
  • #22400

    Participant
    Points: 0
    Rank: Member

    When calling my function using $var1 = Get-Whatever $object it refuses to recognize the object I am passing properly.

    If I called the function using Get-Whatever $object it works as expected. I need to pass the result back to a variable. Any one have any thoughts why this might occur?

    Regards,
    Scott

  • #22401

    Participant
    Points: 0
    Rank: Member

    Can you post your function?

The topic ‘Issues calling a function’ is closed to new replies.