Here I get past the basics of using the Script() method and take you to how to recreate some of the scripts you can create in SSMS by instantiating a scriptingOptions object and passing it to the method.
On this page of the site you can watch the video online Scripting DB Objects in Powershell (Advanced Topics) with a duration of hours minute second in good quality, which was uploaded by the user Jen and Sean McCown - MinionWare 29 September 2017, share the link with friends and acquaintances, this video has already been watched 201 times on youtube and it was liked by 2 viewers. Enjoy your viewing!