This PowerShell script was not written as a PowerShell Workflow and was intended to run in a local PowerShell ISE. This script ...

This PowerShell script was not written as a PowerShell Workflow and was intended to run in a local PowerShell ISE.  This script will be converted to a PowerShell Workflow script for you, though you may still need to make additional changes in order for the converted script to run properly in your Azure Automation environment.