When you post code, sample data, console output or error messages please format it as code using the preformatted text button ( </> ). Simply place your cursor on an empty line, click the button and paste your code.
Thanks in advance
I’m not completely sure if I got what you mean. If all single steps working by themselfs you simply save them in text file with the extrension .ps1 and you have a PowerShell script.