I need the following:

1. Get "process" on remote serverS
2. if !running
1.1 rename folder "name1" on remote serverS
1.2 copy remote folder to remote folder on the same servers (keeping the old folder with another name and copy a new folder with content to all servers
3. if running kill "process" then do step 1.1 and 1.2

It would be nice to specify the folders and servers in txt files

I have tried for some weeks now with different solutions, but not getting everything to work together. I wont post any code cause it's just messed up right now.
I have tried PSscript with success, but there are problems with rights.

I NEED HELP! thanks!