How can I call a form from a script?

How can I call a form from a script?

I have a function that runs from a custom action. One of the things I want the function to do is to switch to a different form for data input. Is this possible? How do I call (and display) a form from a function?

Thanks

Dave