Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
This " Therefore, you will need to change every occurrence of 'CiscoUcsPs' to 'Cisco.UcsManager' within the script. It should then load the proper module so you should be able to execute the script." worked for me.