{"id":789,"date":"2008-03-23T13:25:07","date_gmt":"2008-03-23T21:25:07","guid":{"rendered":"http:\/\/www.scriptinganswers.com\/essentials\/index.php\/2008\/03\/23\/avoid-the-use-of-aliases-in-scripts\/"},"modified":"2008-11-04T09:08:42","modified_gmt":"2008-11-04T17:08:42","slug":"avoid-the-use-of-aliases-in-scripts","status":"publish","type":"post","link":"https:\/\/dev.sapien.com\/blog\/2008\/03\/23\/avoid-the-use-of-aliases-in-scripts\/","title":{"rendered":"Avoid the use of aliases in scripts"},"content":{"rendered":"<p>Aliases are harder to read and maintain over the long term &#8211; so try and avoid using them in a script. If you use <a href=\"http:\/\/www.primalscript.com\">PrimalScript<\/a>, just select Edit &gt; Convert &gt; Alias to Cmdlet to turn all aliases into their full cmdlet names, providing easier long-term maintenance and readability for your script.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Aliases are harder to read and maintain over the long term &#8211; so try and avoid using them in a script. If you use PrimalScript, just select Edit &gt; Convert &gt; Alias to Cmdlet to turn all aliases into their full cmdlet names, providing easier long-term maintenance and readability for your script.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[283,25],"tags":[340,347,349,28],"class_list":["post-789","post","type-post","status-publish","format-standard","hentry","category-howto","category-windows-powershell","tag-aliases","tag-cmdlet-names","tag-convert","tag-powershell"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/789","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/comments?post=789"}],"version-history":[{"count":1,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/789\/revisions"}],"predecessor-version":[{"id":827,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/789\/revisions\/827"}],"wp:attachment":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/media?parent=789"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/categories?post=789"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/tags?post=789"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}