PowerShell - Set Value in to $Workflow.Parameter()

Hi Team 

I know i can set a parameter in a Workflow properties , assign it a value and then call this value. 

How ever am i able to create a script that will run and populate the workflow parameter with a value? 

Thanks in advance