In my here-string its more fully featured. In the function I have created it will out-file the file. Copy that to the remote machine location. And then register a scheduled task to run it to evaluate an activity on that machine I am running.
Is there a way to do what i want to do what I want to do in the here-string...or based on my current example is there a better way to perform that task?
If you use double quotes the variables in your here string will be replaced by their "content". If you don't have content yet it's empty. If you don't like the variables to be "replaced" you will have to escape the dollar sign with a backtick.