Hi Tim, I achived this with simple steps en ubuntu 16.04 I think these steps can be usefull for you in rhel7.
1. On the agent (ubuntu 16.04) capabilities add new capabities for powershell v6.0. I have attached image
2. On the configurations I use the new commad for powershell with arguments. I have attached image
This script execute succesfully.
G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events