Guys, really appreciate the responses. Luc I will look though that information below.
Basically I am using vRealize Automation, but could use orchestrator, but want the invoke-command to be courtesy of Powershell (for obvious reasons). My workflow, has a number of inputs in which are passed to the createVM schema element. Once this is completed it is sysprepped and then I run another element vim3Wait DNS which waits for DNS to register and report back. This allows time for workload to be up. Once this is completed, I wanted to invoke-powershell script.
So yes I pass the VM a name during my workflow run, this is a "Input" The input name within is simply "name" and then I have a binding in which hands it off to the cloneVM schema element so the name is passed to the VM and the template name is not used. So basically by the time the PS script is ready to be invoked, the VM is up running, with DNS/VMWare tools humming away.
Will keep looking at your gents suggestions and report back, once again thanks for your replies thus far.